Merge pull request #3689 from ccding/patch-1

raft/doc: fix misuse of `for' loop in docs
This commit is contained in:
Xiang Li 2015-10-15 09:20:05 -07:00
commit df34d67e98

View File

@ -86,7 +86,7 @@ The total state machine handling loop will look something like this:
if !raft.IsEmptySnap(rd.Snapshot) {
processSnapshot(rd.Snapshot)
}
for entry := range rd.CommittedEntries {
for _, entry := range rd.CommittedEntries {
process(entry)
if entry.Type == raftpb.EntryConfChange {
var cc raftpb.ConfChange