Skip to content

Commit

Permalink
Fix doc hyperlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
lerouxrgd committed Sep 1, 2023
1 parent 73bc9ea commit 74f92ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ngt/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl<T> NgtIndex<T>
where
T: NgtObjectType,
{
/// Creates an empty ANNG index with the given [`NgtProperties`]().
/// Creates an empty ANNG index with the given [`NgtProperties`][].
pub fn create<P: AsRef<Path>>(path: P, prop: NgtProperties<T>) -> Result<Self> {
if cfg!(feature = "shared_mem") && path.as_ref().exists() {
Err(Error(format!("Path {:?} already exists", path.as_ref())))?
Expand Down Expand Up @@ -180,7 +180,7 @@ where
}
}

/// Search the nearest vectors to the specified [`NgtQuery`]().
/// Search the nearest vectors to the specified [`NgtQuery`][].
///
/// **The index must have been [`built`](NgtIndex::build) beforehand**.
pub fn search_query(&self, query: NgtQuery<T>) -> Result<Vec<SearchResult>> {
Expand Down

0 comments on commit 74f92ec

Please sign in to comment.