wal: document grammar correction

Corrected grammar mistake for doc.go
This commit is contained in:
sharat 2016-08-30 00:50:02 +05:30
parent 45079ec6c1
commit 69ed560fae

View File

@ -25,7 +25,7 @@ to it with the Save method:
... ...
err := w.Save(s, ents) err := w.Save(s, ents)
After saving an raft snapshot to disk, SaveSnapshot method should be called to After saving a raft snapshot to disk, SaveSnapshot method should be called to
record it. So WAL can match with the saved snapshot when restarting. record it. So WAL can match with the saved snapshot when restarting.
err := w.SaveSnapshot(walpb.Snapshot{Index: 10, Term: 2}) err := w.SaveSnapshot(walpb.Snapshot{Index: 10, Term: 2})