aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkawakita <tommycsth61@gmail.com>2021-06-30 00:46:05 +0900
committerIan Lance Taylor <iant@golang.org>2021-06-29 16:57:13 +0000
commit3463852b7631adbdd65646539fc87d967dcd13e6 (patch)
tree73db3f4c6f03720dd8076863e39d18d87eb322ff
parentfd4b587da3f9a2bde193a5b9fd2ba96667e08f2d (diff)
downloadgo-3463852b7631adbdd65646539fc87d967dcd13e6.tar.gz
go-3463852b7631adbdd65646539fc87d967dcd13e6.zip
math/big: fix typo of comment (`BytesScanner` to `ByteScanner`)
Change-Id: I0c2d26d6ede1452008992efbea7392162da65014 Reviewed-on: https://go-review.googlesource.com/c/go/+/331651 Reviewed-by: Robert Griesemer <gri@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-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 65f32487b5..7647346486 100644
--- a/src/math/big/int.go
+++ b/src/math/big/int.go
@@ -425,7 +425,7 @@ func (z *Int) SetString(s string, base int) (*Int, bool) {
return z.setFromScanner(strings.NewReader(s), base)
}
-// setFromScanner implements SetString given an io.BytesScanner.
+// setFromScanner implements SetString given an io.ByteScanner.
// For documentation see comments of SetString.
func (z *Int) setFromScanner(r io.ByteScanner, base int) (*Int, bool) {
if _, _, err := z.scan(r, base); err != nil {