From 49fb7924498e9fe813444cc684a24002e75b2ac9 Mon Sep 17 00:00:00 2001 From: Nathan Daly Date: Tue, 29 Oct 2019 02:39:43 -0400 Subject: [PATCH] Fix `div` docstring to describe division, after #33040 (#33703) 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. --- base/div.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/div.jl b/base/div.jl index d50dabdeae422..e07729c636a59 100644 --- a/base/div.jl +++ b/base/div.jl @@ -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.