From 246ccb022526fdc410635e174ecdd261eeccf109 Mon Sep 17 00:00:00 2001 From: Sergi Cuenca <41625166+SergiCL@users.noreply.github.com> Date: Thu, 30 Jul 2020 11:00:48 +0200 Subject: [PATCH] docs: should be asBoolean instead of asNumber (#4023) It has been used `asNumber` instead of `asBoolean` in the `resolves value to boolean` section. This can lead to confusion. --- docs/remote-config/usage/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +```