Browse Source

doc: fix document example error

mengjin 6 years ago
parent
commit
41f7142ff9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      clientv3/naming/doc.go

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