diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/bool.gleam | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gleam/bool.gleam b/src/gleam/bool.gleam index 6728d00..f80385c 100644 --- a/src/gleam/bool.gleam +++ b/src/gleam/bool.gleam @@ -211,6 +211,14 @@ pub fn to_int(bool: Bool) -> Int { /// > to_string(False) /// "False" /// +/// > import gleam/string +/// > string.lowercase(to_string(True)) +/// "true" +/// +/// > import gleam/string +/// > string.lowercase(to_string(False)) +/// "false" +/// pub fn to_string(bool: Bool) -> String { case bool { False -> "False" |