From 713c2571f8e0f78d5ba8164c2483c1ac177c359c Mon Sep 17 00:00:00 2001 From: sarna Date: Mon, 18 Mar 2024 16:38:48 +0100 Subject: Add note about side-effects in guard --- src/gleam/bool.gleam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gleam/bool.gleam b/src/gleam/bool.gleam index adf1fd8..0671c03 100644 --- a/src/gleam/bool.gleam +++ b/src/gleam/bool.gleam @@ -361,7 +361,7 @@ pub fn to_string(bool: Bool) -> String { /// /// Note that unlike in procedural languages the `return` value is evaluated /// even when the predicate is `False`, so it is advisable not to perform -/// expensive computation there. +/// expensive computation nor side-effects there. /// /// /// ## Examples -- cgit v1.2.3