Skip to content

Commit

Permalink
Fix example code.
Browse files Browse the repository at this point in the history
  • Loading branch information
robshakir committed May 24, 2022
1 parent 2346d4b commit 1aaf4d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ func ExampleClient_Once() {
Addrs: []string{"127.0.0.1:1234"},
Target: "dev",
Queries: []client.Path{{"*"}},
Type: client.Once,
Type: Once, // client.Once in external packages.
}
c := client.New()
defer c.Close()
Expand All @@ -512,7 +512,7 @@ func ExampleClient_Poll() {
Addrs: []string{"127.0.0.1:1234"},
Target: "dev",
Queries: []client.Path{{"*"}},
Type: client.Poll,
Type: Poll, // client.Poll in external packages.
}
c := client.New()
defer c.Close()
Expand Down

0 comments on commit 1aaf4d1

Please sign in to comment.