diff options
author | Giacomo Cavalieri <giacomo.cavalieri@icloud.com> | 2024-10-10 13:20:27 +0200 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-10-10 15:06:25 +0100 |
commit | 84ad00e26bc93db6b770846d4755a4015c7f7fec (patch) | |
tree | e9c18af84017256d51c90a94a8f312a96985634b /src | |
parent | d50ac221d9902392f2ba3d9402d72954673ffd4a (diff) | |
download | gleam_stdlib-84ad00e26bc93db6b770846d4755a4015c7f7fec.tar.gz gleam_stdlib-84ad00e26bc93db6b770846d4755a4015c7f7fec.zip |
refactor bool
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/bool.gleam | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gleam/bool.gleam b/src/gleam/bool.gleam index e97d662..5c3f447 100644 --- a/src/gleam/bool.gleam +++ b/src/gleam/bool.gleam @@ -331,9 +331,9 @@ pub fn to_string(bool: Bool) -> String { /// pub fn guard( when requirement: Bool, - return consequence: t, - otherwise alternative: fn() -> t, -) -> t { + return consequence: a, + otherwise alternative: fn() -> a, +) -> a { case requirement { True -> consequence False -> alternative() |