diff options
Diffstat (limited to 'src/math')
| -rw-r--r-- | src/math/big/nat.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/math/big/nat.go b/src/math/big/nat.go index 512b2c229f..31e1ad8fcf 100644 --- a/src/math/big/nat.go +++ b/src/math/big/nat.go @@ -363,10 +363,11 @@ func karatsuba(z, x, y nat) { } // alias reports whether x and y share the same base array. +// // Note: alias assumes that the capacity of underlying arrays -// is never changed for nat values; i.e. that there are -// no 3-operand slice expressions in this code (or worse, -// reflect-based operations to the same effect). +// is never changed for nat values; i.e. that there are +// no 3-operand slice expressions in this code (or worse, +// reflect-based operations to the same effect). func alias(x, y nat) bool { return cap(x) > 0 && cap(y) > 0 && &x[0:cap(x)][cap(x)-1] == &y[0:cap(y)][cap(y)-1] } |
