From a6494432e50f7dc7388da48dc0c1ae314dbe09fd Mon Sep 17 00:00:00 2001 From: Ho-Yon Mak Date: Wed, 16 Oct 2024 15:21:36 +0100 Subject: [PATCH] Fix targeting docs in README 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 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a3acaf..270b207 100644 --- a/README.md +++ b/README.md @@ -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