diff options
author | Yihang Ho <hoyihang5@gmail.com> | 2023-05-20 23:03:30 +0800 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2023-05-20 16:09:07 +0100 |
commit | 308f5be01e2f9c8db047b8c556ea75745345a908 (patch) | |
tree | d138fb8ec38925026a899108451dd0968f4d8025 | |
parent | b0afebc99314f942a213aa645cedbd7d9f9a55fe (diff) | |
download | gleam_stdlib-308f5be01e2f9c8db047b8c556ea75745345a908.tar.gz gleam_stdlib-308f5be01e2f9c8db047b8c556ea75745345a908.zip |
Fix doc for bool.guard
-rw-r--r-- | src/gleam/bool.gleam | 4 |
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. /// |