diff options
author | Louis Pilfold <louis@lpil.uk> | 2023-02-20 15:43:40 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2023-02-20 15:43:40 +0000 |
commit | e4e1ace4394ff7cf13769785be029aae287f7440 (patch) | |
tree | 91c2dd2093e74d67d9e466a7559144e77e0c36dd /src | |
parent | b2d6c2e5a9469bf0195f007a1ced78b3881314dc (diff) | |
download | gleam_stdlib-e4e1ace4394ff7cf13769785be029aae287f7440.tar.gz gleam_stdlib-e4e1ace4394ff7cf13769785be029aae287f7440.zip |
Note %
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/int.gleam | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/gleam/int.gleam b/src/gleam/int.gleam index 7623331..44a6de4 100644 --- a/src/gleam/int.gleam +++ b/src/gleam/int.gleam @@ -617,13 +617,12 @@ pub fn divide(dividend: Int, by divisor: Int) -> Result(Int, Nil) { /// Computes the remainder of an integer division of inputs as a `Result`. /// -/// This functions mimicks modulo operation of following languages: -/// C, C#, C++, Go, Java, JavaScript, Kotlin, Nim, PHP, Rust, -/// Scala, Swift, Crystal as well as Erlang's and Elixir's rem operator. -/// /// Returns division of the inputs as a `Result`: If the given divisor equals /// `0`, this function returns an `Error`. /// +/// Most the time you will want to use the `%` operator instead of this +/// function. +/// /// ## Examples /// /// ```gleam @@ -670,12 +669,12 @@ pub fn remainder(dividend: Int, by divisor: Int) -> Result(Int, Nil) { /// Computes the modulo of an integer division of inputs as a `Result`. /// -/// This functions mimicks modulo operation on following languages: -/// Haskell, Lua, Python, Ruby, as well as Elixir's Integer.mod(). -/// /// Returns division of the inputs as a `Result`: If the given divisor equals /// `0`, this function returns an `Error`. /// +/// Most the time you will want to use the `%` operator instead of this +/// function. +/// /// ## Examples /// /// ```gleam |