Explorar o código

Merge pull request #2520 from funkygao/funky

fix godoc bug
Xiang Li %!s(int64=11) %!d(string=hai) anos
pai
achega
5bfb4ed4fb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      raft/doc.go

+ 1 - 1
raft/doc.go

@@ -20,7 +20,7 @@ Usage
 The primary object in raft is a Node. You either start a Node from scratch
 The primary object in raft is a Node. You either start a Node from scratch
 using raft.StartNode or start a Node from some initial state using raft.RestartNode.
 using raft.StartNode or start a Node from some initial state using raft.RestartNode.
 	storage := raft.NewMemoryStorage()
 	storage := raft.NewMemoryStorage()
-	n := raft.StartNode(0x01, []int64{0x02, 0x03}, 3, 1, storage)
+	n := raft.StartNode(0x01, []raft.Peer{{ID: 0x02}, {ID: 0x03}}, 3, 1, storage)
 
 
 Now that you are holding onto a Node you have a few responsibilities:
 Now that you are holding onto a Node you have a few responsibilities: