diff --git a/docs/remote-config/usage/index.md b/docs/remote-config/usage/index.md index 3098d974..6fcd1893 100644 --- a/docs/remote-config/usage/index.md +++ b/docs/remote-config/usage/index.md @@ -111,7 +111,7 @@ if (awesomeNewFeature.asNumber() === 5) { // resolves value to boolean // if value is any of the following: '1', 'true', 't', 'yes', 'y', 'on', it will resolve to true // if source is 'static', value will be false -if (awesomeNewFeature.asNumber() === true) { +if (awesomeNewFeature.asBoolean() === true) { enableAwesomeNewFeature(); } ``` @@ -168,4 +168,4 @@ You can also apply a global cache frequency by calling the `setConfigSettings` m await remoteConfig().setConfigSettings({ minimumFetchIntervalMillis: 30000, }); -``` \ No newline at end of file +```