Skip to content

Commit

Permalink
Fix TemplateSTRtree method doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Nov 29, 2023
1 parent 635e833 commit 9b310cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/geos/index/strtree/TemplateSTRtree.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class TemplateSTRtreeImpl {
return nearestNeighbour(*this, distance);
}

/** Determine the two closest items in the tree using distance metric `distance`. */
/** Determine the two closest items in the tree using distance metric `ItemDistance`. */
template<typename ItemDistance>
std::pair<ItemType, ItemType> nearestNeighbour() {
return nearestNeighbour(*this);
Expand All @@ -221,7 +221,7 @@ class TemplateSTRtreeImpl {
return td.nearestNeighbour(*root, *other.root);
}

/** Determine the two closest items this tree and `other` tree using distance metric `distance`. */
/** Determine the two closest items this tree and `other` tree using distance metric `ItemDistance`. */
template<typename ItemDistance>
std::pair<ItemType, ItemType> nearestNeighbour(TemplateSTRtreeImpl<ItemType, BoundsTraits>& other) {
ItemDistance id;
Expand Down

0 comments on commit 9b310cb

Please sign in to comment.