diff options
author | Alex Rothuis <alex.rothuis@gmail.com> | 2022-11-02 18:24:31 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2022-11-06 16:45:54 +0000 |
commit | 639ad650cd0bae566f5a7f96764b6cd7b05559c0 (patch) | |
tree | bd3122ae2867a42445bc36c5eb5e81d4b5c3d440 /src | |
parent | aef5695dc4bcbf9aad4326f219ca32417a641191 (diff) | |
download | gleam_stdlib-639ad650cd0bae566f5a7f96764b6cd7b05559c0.tar.gz gleam_stdlib-639ad650cd0bae566f5a7f96764b6cd7b05559c0.zip |
Update int subtract documentation
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/int.gleam | 4 |
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, _) |