diff --git a/src/lib.rs b/src/lib.rs index c5599df..1bf32ee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -531,6 +531,9 @@ impl Search { self.select_heuristic(point, &layer, num, points, params) } + /// Heuristically sort and truncate neighbors in `self.nearest` + /// + /// Invariant: `self.nearest` must be in sorted (nearest first) order. fn select_heuristic( &mut self, point: &P,