diff --git a/src/java/org/apache/lucene/index/DocumentsWriterFieldData.java b/src/java/org/apache/lucene/index/DocumentsWriterFieldData.java index b52a241c156..a084982446a 100644 --- a/src/java/org/apache/lucene/index/DocumentsWriterFieldData.java +++ b/src/java/org/apache/lucene/index/DocumentsWriterFieldData.java @@ -243,7 +243,7 @@ final class DocumentsWriterFieldData implements Comparable { Token token = stream.next(localToken); if (token == null) break; position += (token.getPositionIncrement() - 1); - // LUCENE-1255: don't allow negative positon + // LUCENE-1255: don't allow negative position if (position < 0) position = 0; addPosition(token);