raft/doc: fix misuse of `for' loop in docs

This commit is contained in:
Cong Ding 2015-10-15 11:13:30 -05:00
parent c2e49b5622
commit 362df8e470

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