From 308f5be01e2f9c8db047b8c556ea75745345a908 Mon Sep 17 00:00:00 2001 From: Yihang Ho Date: Sat, 20 May 2023 23:03:30 +0800 Subject: Fix doc for bool.guard --- src/gleam/bool.gleam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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. /// -- cgit v1.2.3