]> Cypherpunks repositories - gostls13.git/commitdiff
math/big: fix typo in comment
authorRobert Griesemer <gri@golang.org>
Fri, 8 Jan 2016 19:33:17 +0000 (11:33 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 8 Jan 2016 20:18:10 +0000 (20:18 +0000)
Fixes #13875.

Change-Id: Icbb85c858d0bc545499a2b31622e9e7abdd7e5f9
Reviewed-on: https://go-review.googlesource.com/18441
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/math/big/int.go

index 16b7cd131bd753a0d47e48eb832058285b10b631..67ab7042ffe699b41d8da7b0081f670d163a6cf9 100644 (file)
@@ -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