diff options
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, _) |