Skip to content

Commit

Permalink
v3client: fix doc to use e.Server
Browse files Browse the repository at this point in the history
Was passing embed.Etcd instead of etcdserver.EtcdServer.
  • Loading branch information
Anthony Romano committed Mar 15, 2017
1 parent 8f83d11 commit dea2516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etcdserver/api/v3client/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand Down

0 comments on commit dea2516

Please sign in to comment.