From 639ad650cd0bae566f5a7f96764b6cd7b05559c0 Mon Sep 17 00:00:00 2001 From: Alex Rothuis Date: Wed, 2 Nov 2022 18:24:31 +0100 Subject: Update int subtract documentation --- src/gleam/int.gleam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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, _) -- cgit v1.2.3