Skip to content

Commit

Permalink
Fix targeting docs in README
Browse files Browse the repository at this point in the history
The context for targeting needs to be passed in as a keyword list instead of directly as the 4th argument

Signed-off-by: Ho-Yon Mak <[email protected]>
  • Loading branch information
hoyon authored and ejscunha committed Oct 16, 2024
1 parent ec9463b commit a649443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ OpenFeature.set_global_context(%{region: "us-east-1"})
client = OpenFeature.get_client() |> OpenFeature.Client.set_context(%{region: "us-east-1"})

# set a value to the invocation context
flag_value = OpenFeature.Client.get_boolean_value(client, "some-flag", flag, %{region: "us-east-1"})
flag_value = OpenFeature.Client.get_boolean_value(client, "some-flag", flag, context: %{region: "us-east-1"})
```

### Hooks
Expand Down

0 comments on commit a649443

Please sign in to comment.