aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYihang Ho <hoyihang5@gmail.com>2023-05-20 23:03:30 +0800
committerLouis Pilfold <louis@lpil.uk>2023-05-20 16:09:07 +0100
commit308f5be01e2f9c8db047b8c556ea75745345a908 (patch)
treed138fb8ec38925026a899108451dd0968f4d8025 /src
parentb0afebc99314f942a213aa645cedbd7d9f9a55fe (diff)
downloadgleam_stdlib-308f5be01e2f9c8db047b8c556ea75745345a908.tar.gz
gleam_stdlib-308f5be01e2f9c8db047b8c556ea75745345a908.zip
Fix doc for bool.guard
Diffstat (limited to 'src')
-rw-r--r--src/gleam/bool.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gleam/bool.gleam b/src/gleam/bool.gleam
index 5586153..66200a8 100644
--- a/src/gleam/bool.gleam
+++ b/src/gleam/bool.gleam
@@ -324,9 +324,9 @@ pub fn to_string(bool: Bool) -> String {
}
}
-/// Run a callback function if the given bool is `True`, otherwise return a
+/// Run a callback function if the given bool is `False`, otherwise return a
/// default value.
-///
+///
/// With a `use` expression this function can simulate the early-return pattern
/// found in some other programming languages.
///