瀏覽代碼

client/README: correct Endpoints param

masterlvng 10 年之前
父節點
當前提交
938333a9fe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/README.md

+ 1 - 1
client/README.md

@@ -77,7 +77,7 @@ If the response gets from the cluster is invalid, a plain string error will be r
 Here is the example code to handle client errors:
 
 ```go
-cfg := client.Config{Endpoints: []string{"http://etcd1:2379,http://etcd2:2379,http://etcd3:2379"}}
+cfg := client.Config{Endpoints: []string{"http://etcd1:2379","http://etcd2:2379","http://etcd3:2379"}}
 c, err := client.New(cfg)
 if err != nil {
 	log.Fatal(err)