Skip to content

Apache Lucene open-source search software

Revise javadoc of ExactPhraseMatcher#advancePosition (#944)

Patrick Zhai7e9d5ab768e1
diff --git a/lucene/core/src/java/org/apache/lucene/search/ExactPhraseMatcher.java b/lucene/core/src/java/org/apache/lucene/search/ExactPhraseMatcher.java
index 36020c94203..b35f2d868dc 100644
--- a/lucene/core/src/java/org/apache/lucene/search/ExactPhraseMatcher.java
+++ b/lucene/core/src/java/org/apache/lucene/search/ExactPhraseMatcher.java
@@ -103,8 +103,8 @@ public final class ExactPhraseMatcher extends PhraseMatcher {
}
/**
- * Advance the given pos enum to the first doc on or after {@code target}. Return {@code false} if
- * the enum was exhausted before reaching {@code target} and {@code true} otherwise.
+ * Advance the given pos enum to the first position on or after {@code target}. Return {@code
+ * false} if the enum was exhausted before reaching {@code target} and {@code true} otherwise.
*/
private static boolean advancePosition(PostingsAndPosition posting, int target)
throws IOException {