aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Rothuis <alex.rothuis@gmail.com>2022-11-02 18:24:31 +0100
committerLouis Pilfold <louis@lpil.uk>2022-11-06 16:45:54 +0000
commit639ad650cd0bae566f5a7f96764b6cd7b05559c0 (patch)
treebd3122ae2867a42445bc36c5eb5e81d4b5c3d440
parentaef5695dc4bcbf9aad4326f219ca32417a641191 (diff)
downloadgleam_stdlib-639ad650cd0bae566f5a7f96764b6cd7b05559c0.tar.gz
gleam_stdlib-639ad650cd0bae566f5a7f96764b6cd7b05559c0.zip
Update int subtract documentation
-rw-r--r--src/gleam/int.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gleam/int.gleam b/src/gleam/int.gleam
index 5760126..d8ccf6e 100644
--- a/src/gleam/int.gleam
+++ b/src/gleam/int.gleam
@@ -695,7 +695,7 @@ pub fn multiply(a: Int, b: Int) -> Int {
a * b
}
-/// Subtracts an integer subtrahend from an integer minuend.
+/// Subtracts one int from another.
///
/// It's the function equivalent of the `-` operator.
/// This function is useful in higher order functions or pipes.
@@ -709,7 +709,7 @@ pub fn multiply(a: Int, b: Int) -> Int {
/// > list.fold([1, 2, 3], 10, subtract)
/// 4
///
-/// > 3 |> subtract(_, 2)
+/// > 3 |> subtract(2)
/// 1
///
/// > 3 |> subtract(2, _)