mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 04:22:22 +00:00
fix typo
This commit is contained in:
parent
08d8597721
commit
bb2b2c2c88
@ -70,7 +70,7 @@ if err != nil {
|
||||
|
||||
```go
|
||||
kapi := client.NewKeysAPI(c)
|
||||
w := kapi.Watcher("/name", nil)
|
||||
w := kapi.Watcher("/path/to/your/config", nil)
|
||||
go func() {
|
||||
for {
|
||||
resp, err := w.Next(context.Background())
|
||||
|
Loading…
x
Reference in New Issue
Block a user