diff options
author | inoas <mail@inoas.com> | 2022-10-10 11:58:17 +0200 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2022-10-10 19:42:33 +0100 |
commit | 3e8a8f8ae758eb33026d1633ee9c95d10131c03b (patch) | |
tree | 304287896aa870f3482c376122ce0e829221afd4 /src | |
parent | 8e8d5ac2a44b33ba3497a4f4b3e2719376ae01dc (diff) | |
download | gleam_stdlib-3e8a8f8ae758eb33026d1633ee9c95d10131c03b.tar.gz gleam_stdlib-3e8a8f8ae758eb33026d1633ee9c95d10131c03b.zip |
docblock, changelog
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/int.gleam | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gleam/int.gleam b/src/gleam/int.gleam index 6a30e60..295381c 100644 --- a/src/gleam/int.gleam +++ b/src/gleam/int.gleam @@ -527,7 +527,8 @@ pub fn divide(a: Int, by b: Int) -> Result(Int, Nil) { /// If you want to perform truncated integer division (rounding towards zero), /// use `int.divide()` or the `/` operator instead. /// -/// Returns division of the inputs as a `Result`. +/// Returns division of the inputs as a `Result`: If the given divisor equals +/// `0`, this function returns an `Error`. /// /// ## Examples /// |