aboutsummaryrefslogtreecommitdiff
path: root/src/math/big
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2016-01-08 11:33:17 -0800
committerRobert Griesemer <gri@golang.org>2016-01-08 20:18:10 +0000
commit5e059d1c3111b4ce555effa072299a44fda96a32 (patch)
tree3ad65a3a8ec9de5302dacf72d8f260c7dad04ec7 /src/math/big
parent4c38b6a96a19022f6ab87c489f32d7e78ca83214 (diff)
downloadgo-5e059d1c3111b4ce555effa072299a44fda96a32.tar.xz
math/big: fix typo in comment
Fixes #13875. Change-Id: Icbb85c858d0bc545499a2b31622e9e7abdd7e5f9 Reviewed-on: https://go-review.googlesource.com/18441 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/math/big')
-rw-r--r--src/math/big/int.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/big/int.go b/src/math/big/int.go
index 16b7cd131b..67ab7042ff 100644
--- a/src/math/big/int.go
+++ b/src/math/big/int.go
@@ -273,7 +273,7 @@ func (z *Int) Mod(x, y *Int) *Int {
// DivMod implements Euclidean division and modulus (unlike Go):
//
// q = x div y such that
-// m = x - y*q with 0 <= m < |q|
+// m = x - y*q with 0 <= m < |y|
//
// (See Raymond T. Boute, ``The Euclidean definition of the functions
// div and mod''. ACM Transactions on Programming Languages and