Skip to content

Commit

Permalink
fix doc typo for Number#divmod
Browse files Browse the repository at this point in the history
chocolateboy authored and Ary Borenszweig committed Oct 18, 2016

Verified

This commit was signed with the committer’s verified signature.
headius Charles Oliver Nutter
1 parent 8d326cc commit 5c3ba1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/number.cr
Original file line number Diff line number Diff line change
@@ -155,7 +155,7 @@ struct Number
#
# ```
# 11.divmod(3) # => {3, 2}
# 11.divmod(-3) # => {-4, 1}
# 11.divmod(-3) # => {-4, -1}
# ```
def divmod(number)
{(self / number).floor, self % number}

0 comments on commit 5c3ba1f

Please sign in to comment.