Browse Source

Merge pull request #3295 from yichengq/err-example

client: fix clusterError typo in README
Yicheng Qin 10 years ago
parent
commit
d448593bbc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/README.md

+ 1 - 1
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