aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gleam/bool.gleam10
-rw-r--r--src/gleam/float.gleam2
2 files changed, 3 insertions, 9 deletions
diff --git a/src/gleam/bool.gleam b/src/gleam/bool.gleam
index d55de8a..e4a12a3 100644
--- a/src/gleam/bool.gleam
+++ b/src/gleam/bool.gleam
@@ -22,10 +22,7 @@ import gleam/order.{Order}
/// > and(False, True)
/// False
///
-/// > True |> and(_, True)
-/// True
-///
-/// > False |> and(True, _)
+/// > False |> and(True)
/// False
/// ```
pub fn and(a: Bool, b: Bool) -> Bool {
@@ -46,10 +43,7 @@ pub fn and(a: Bool, b: Bool) -> Bool {
/// > or(False, True)
/// True
///
-/// > False |> or(_, False)
-/// False
-///
-/// > False |> or(True, _)
+/// > False |> or(True)
/// True
/// ```
pub fn or(a: Bool, b: Bool) -> Bool {
diff --git a/src/gleam/float.gleam b/src/gleam/float.gleam
index e6133fa..3f6e0de 100644
--- a/src/gleam/float.gleam
+++ b/src/gleam/float.gleam
@@ -479,7 +479,7 @@ pub fn multiply(a: Float, b: Float) -> Float {
a *. b
}
-/// Subtracts a float subtrahend from a float minuend.gleam/base
+/// Subtracts one float from another.
///
/// It's the function equivalent of the `-.` operator.
/// This function is useful in higher order functions or pipes.