From 41f7142ff98624d4d00d1e0760c81370b86ae596 Mon Sep 17 00:00:00 2001 From: mengjin Date: Thu, 21 Mar 2019 18:02:38 +0800 Subject: [PATCH] doc: fix document example error --- clientv3/naming/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientv3/naming/doc.go b/clientv3/naming/doc.go index f274fca09..b55cc49ad 100644 --- a/clientv3/naming/doc.go +++ b/clientv3/naming/doc.go @@ -43,7 +43,7 @@ // // func etcdDelete(c *clientv3, service, addr string) error { // r := &etcdnaming.GRPCResolver{Client: c} -// return r.Update(c.Ctx(), "my-service", naming.Update{Op: naming.Delete, Addr: "1.2.3.4"}) +// return r.Update(c.Ctx(), service, naming.Update{Op: naming.Delete, Addr: "1.2.3.4"}) // } // // Or register an expiring endpoint with a lease: