aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiacomo Cavalieri <giacomo.cavalieri@icloud.com>2024-10-10 13:20:27 +0200
committerLouis Pilfold <louis@lpil.uk>2024-10-10 15:06:25 +0100
commit84ad00e26bc93db6b770846d4755a4015c7f7fec (patch)
treee9c18af84017256d51c90a94a8f312a96985634b
parentd50ac221d9902392f2ba3d9402d72954673ffd4a (diff)
downloadgleam_stdlib-84ad00e26bc93db6b770846d4755a4015c7f7fec.tar.gz
gleam_stdlib-84ad00e26bc93db6b770846d4755a4015c7f7fec.zip
refactor bool
-rw-r--r--src/gleam/bool.gleam6
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()