mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft/doc: fix misuse of `for' loop in docs
This commit is contained in:
parent
c2e49b5622
commit
362df8e470
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user