]> Cypherpunks repositories - gostls13.git/commit
math/big: fix comment typo in natdiv.go
authorwithsky <withsky2002@gmail.com>
Wed, 17 Jul 2024 12:06:34 +0000 (12:06 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 17 Jul 2024 15:08:04 +0000 (15:08 +0000)
commitfc51e5023ec99fee405ae61ee4ab2c8c9bc66f24
tree75d1cc6d5578437a2b7977e021bf8e609e11e257
parent90c6558b6acef5a9b9fb8f3c35cff58423c8b00e
math/big: fix comment typo in natdiv.go

Comment in line 395:
[x₀ < S, so S - x₀ < 0; drop it]
Should be:
[x₀ < S, so S - x₀ > 0; drop it]

The proof is based on S - x₀ > 0, thus it's a typo of comment.

Fixes #68466

Change-Id: I68bb7cb909ba2bfe02a8873f74b57edc6679b72a
GitHub-Last-Rev: 40a2fc80cf22e97e0f535454a9b87b31b2e51421
GitHub-Pull-Request: golang/go#68487
Reviewed-on: https://go-review.googlesource.com/c/go/+/598855
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
src/math/big/natdiv.go