From aef5695dc4bcbf9aad4326f219ca32417a641191 Mon Sep 17 00:00:00 2001 From: Alex Rothuis Date: Wed, 2 Nov 2022 18:21:24 +0100 Subject: Improve bool and/or docs Boolean operator functions do not short circuit --- src/gleam/bool.gleam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gleam/bool.gleam b/src/gleam/bool.gleam index e4a12a3..05092f5 100644 --- a/src/gleam/bool.gleam +++ b/src/gleam/bool.gleam @@ -8,7 +8,7 @@ import gleam/order.{Order} -/// Returns the and of two bools. +/// Returns the and of two bools, but it evaluates both arguments. /// /// It's the function equivalent of the `&&` operator. /// This function is useful in higher order functions or pipes. @@ -29,7 +29,7 @@ pub fn and(a: Bool, b: Bool) -> Bool { a && b } -/// Returns the or of two bools. +/// Returns the or of two bools, but it evaluates both arguments. /// /// It's the function equivalent of the `||` operator. /// This function is useful in higher order functions or pipes. -- cgit v1.2.3