Skip to content

Commit 74eaac3

Browse files
docs: Use SetProviderAndWait in README example (#333)
Signed-off-by: Nicholas Thomson <[email protected]>
1 parent a7dbd93 commit 74eaac3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ import (
6767

6868
func main() {
6969
// Register your feature flag provider
70-
openfeature.SetProvider(openfeature.NoopProvider{})
70+
openfeature.SetProviderAndWait(openfeature.NoopProvider{})
7171
// Create a new client
7272
client := openfeature.NewClient("app")
7373
// Evaluate your feature flag
@@ -81,7 +81,7 @@ func main() {
8181
}
8282
```
8383

84-
Try this example in the [Go Playground](https://go.dev/play/p/k0wqE8LPdR_X).
84+
Try this example in the [Go Playground](https://go.dev/play/p/fSSK8s42hA2).
8585

8686
### API Reference
8787

0 commit comments

Comments
 (0)