diff --git a/client/README.md b/client/README.md index 9106c89f8..672b8c13f 100644 --- a/client/README.md +++ b/client/README.md @@ -74,7 +74,7 @@ if err != nil { // ctx is canceled by another routine } else if err == context.DeadlineExceeded { // ctx is attached with a deadline and it exceeded - } else if cerr, ok := err.(ClusterError); ok { + } else if cerr, ok := err.(*client.ClusterError); ok { // process (cerr.Errors) } else { // bad cluster endpoints, which are not etcd servers