Skip to content

Commit

Permalink
Merge pull request #7358 from gyuho/manual
Browse files Browse the repository at this point in the history
clientv3: fix typo in README
  • Loading branch information
gyuho committed Feb 21, 2017
2 parents 2ac44ea + 56b4e6b commit 86cb9f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clientv3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pass `context.WithTimeout` to APIs:

```go
ctx, cancel := context.WithTimeout(context.Background(), timeout)
resp, err := kvc.Put(ctx, "sample_key", "sample_value")
resp, err := cli.Put(ctx, "sample_key", "sample_value")
cancel()
if err != nil {
// handle error!
Expand All @@ -57,7 +57,7 @@ etcd client returns 2 types of errors:
Here is the example code to handle client errors:

```go
resp, err := kvc.Put(ctx, "", "")
resp, err := cli.Put(ctx, "", "")
if err != nil {
switch err {
case context.Canceled:
Expand Down

0 comments on commit 86cb9f2

Please sign in to comment.