aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()