From c81fd6fdb08af4d01764e18c1f66551ac29b322e Mon Sep 17 00:00:00 2001 From: Patrick Mezard Date: Sun, 20 Nov 2016 19:05:35 +0100 Subject: [PATCH] index: DocIDReader.Next() returns nil when done not io.EOF --- index/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index/index.go b/index/index.go index ffcf6dcc..8a2747b4 100644 --- a/index/index.go +++ b/index/index.go @@ -175,7 +175,7 @@ type FieldDict interface { // Close the reader to release associated resources. type DocIDReader interface { // Next returns the next document internal identifier in the natural - // index order, or io.EOF when the end of the sequence is reached. + // index order, nil when the end of the sequence is reached. Next() (IndexInternalID, error) // Advance resets the iteration to the first internal identifier greater than