Skip to content

Commit 308f5be

Browse files
yihangholpil
authored andcommitted
Fix doc for bool.guard
1 parent b0afebc commit 308f5be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gleam/bool.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ pub fn to_string(bool: Bool) -> String {
324324
}
325325
}
326326

327-
/// Run a callback function if the given bool is `True`, otherwise return a
327+
/// Run a callback function if the given bool is `False`, otherwise return a
328328
/// default value.
329-
///
329+
///
330330
/// With a `use` expression this function can simulate the early-return pattern
331331
/// found in some other programming languages.
332332
///

0 commit comments

Comments
 (0)