From 06ea1b13c1940781c17f0729717c6af8172a3608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 26 Feb 2022 01:09:51 +0100 Subject: [PATCH] Improve iterator Next() descriptions --- litestream.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/litestream.go b/litestream.go index 829e0ff..9bb945e 100644 --- a/litestream.go +++ b/litestream.go @@ -71,9 +71,9 @@ func init() { type SnapshotIterator interface { io.Closer - // Prepares the the next snapshot for reading with the Snapshot() method. + // Prepares the next snapshot for reading with the Snapshot() method. // Returns true if another snapshot is available. Returns false if no more - // snapshots are available or if an error occured. + // snapshots are available or if an error occurred. Next() bool // Returns an error that occurred during iteration. @@ -133,9 +133,9 @@ func (itr *SnapshotInfoSliceIterator) Snapshot() SnapshotInfo { type WALSegmentIterator interface { io.Closer - // Prepares the the next WAL for reading with the WAL() method. + // Prepares the next WAL for reading with the WAL() method. // Returns true if another WAL is available. Returns false if no more - // WAL files are available or if an error occured. + // WAL files are available or if an error occurred. Next() bool // Returns an error that occurred during iteration.