Browse Source

wal: fix wal doc

Xiang Li 11 years ago
parent
commit
502396edd5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wal/doc.go

+ 1 - 1
wal/doc.go

@@ -48,7 +48,7 @@ Cut issues 0x10 entries with incremental index later then the file will be calle
 
 
 At a later time a WAL can be opened at a particular raft index:
 At a later time a WAL can be opened at a particular raft index:
 
 
-	w, err := wal.OpenAtIndex("/var/lib/etcd", 0)
+	w, err := wal.Open("/var/lib/etcd", 0)
 	...
 	...
 
 
 The raft index must have been written to the WAL. When opening without a
 The raft index must have been written to the WAL. When opening without a