Skip to content

Commit

Permalink
Fix div docstring to describe division, after #33040 (#33703)
Browse files Browse the repository at this point in the history
It looks like in #33040 the `div` docstring was accidentally incorrectly copied from the `rem` docstring, so it currently describes the `rem` operation, not `div`.

This commit changes that docstring to correctly describe integer division with custom rounding.
  • Loading branch information
NHDaly authored and Keno committed Oct 29, 2019
1 parent 1b6101a commit 49fb792
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/div.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"""
div(x, y, r::RoundingMode=RoundToZero)
Compute the remainder of `x` after integer division by `y`, with the quotient rounded
according to the rounding mode `r`. In other words, the quantity
The quotient from Euclidean division. Computes x/y, rounded to an integer according
to the rounding mode `r`. In other words, the quantity
y*round(x/y,r)
round(x/y,r)
without any intermediate rounding.
Expand Down

0 comments on commit 49fb792

Please sign in to comment.