Skip to content

Apache Lucene open-source search software

Fix comment above OnHeapHnswGraph#getNeighbors. (#14713)

zhouhuia2f427e43ca3
diff --git a/lucene/core/src/java/org/apache/lucene/util/hnsw/OnHeapHnswGraph.java b/lucene/core/src/java/org/apache/lucene/util/hnsw/OnHeapHnswGraph.java
index ce2b3c37ce6..cd5695b533a 100644
--- a/lucene/core/src/java/org/apache/lucene/util/hnsw/OnHeapHnswGraph.java
+++ b/lucene/core/src/java/org/apache/lucene/util/hnsw/OnHeapHnswGraph.java
@@ -86,7 +86,7 @@ public final class OnHeapHnswGraph extends HnswGraph implements Accountable {
}
/**
- * Returns the {@link NeighborQueue} connected to the given node.
+ * Returns the {@link NeighborArray} connected to the given node.
*
* @param level level of the graph
* @param node the node whose neighbors are returned, represented as an ordinal on the level 0.