Browse Source

v3client: fix doc to use e.Server

Was passing embed.Etcd instead of etcdserver.EtcdServer.
Anthony Romano 8 years ago
parent
commit
dea2516177
1 changed files with 1 additions and 1 deletions
  1. 1 1
      etcdserver/api/v3client/doc.go

+ 1 - 1
etcdserver/api/v3client/doc.go

@@ -34,7 +34,7 @@
 //	}
 //
 //	// wrap the EtcdServer with v3client
-//	cli := v3client.New(e)
+//	cli := v3client.New(e.Server)
 //
 //	// use like an ordinary clientv3
 //	resp, err := cli.Put(context.TODO(), "some-key", "it works!")