diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
index 7efeb932888..484006fc420 100644
--- a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
+++ b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
@@ -6198,14 +6198,15 @@ public class IndexWriter
/** DocStats for this index */
public static final class DocStats {
/**
- * The total number of docs in this index, including docs not yet flushed (still in the RAM
- * buffer), not counting deletions.
+ * The total number of docs in this index, counting docs not yet flushed (still in the RAM
+ * buffer), and also counting deleted docs. NOTE: buffered deletions are not counted. If
+ * you really need these to be counted you should call {@link IndexWriter#commit()} first.
*/
public final int maxDoc;
+
/**
- * The total number of docs in this index, including docs not yet flushed (still in the RAM
- * buffer), and including deletions. NOTE: buffered deletions are not counted. If you
- * really need these to be counted you should call {@link IndexWriter#commit()} first.
+ * The total number of docs in this index, counting docs not yet flushed (still in the RAM
+ * buffer), but not counting deleted docs.
*/
public final int numDocs;