Skip to content

Commit

Permalink
Fewer examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed May 10, 2024
1 parent 7d65d93 commit 61a990b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/gleam/int.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -682,16 +682,6 @@ pub fn remainder(dividend: Int, by divisor: Int) -> Result(Int, Nil) {
/// // -> Ok(2)
/// ```
///
/// ```gleam
/// modulo(13, by: -3)
/// // -> Ok(-2)
/// ```
///
/// ```gleam
/// modulo(-13, by: -3)
/// // -> Ok(-1)
/// ```
///
pub fn modulo(dividend: Int, by divisor: Int) -> Result(Int, Nil) {
case divisor {
0 -> Error(Nil)
Expand Down

0 comments on commit 61a990b

Please sign in to comment.