]> Cypherpunks repositories - gostls13.git/commitdiff
math/big: fix typo of comment (`BytesScanner` to `ByteScanner`)
authortkawakita <tommycsth61@gmail.com>
Tue, 29 Jun 2021 15:46:05 +0000 (00:46 +0900)
committerIan Lance Taylor <iant@golang.org>
Tue, 29 Jun 2021 16:57:13 +0000 (16:57 +0000)
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>
src/math/big/int.go

index 65f32487b58c017c8aa224c7e805cf0d2fcd20b0..7647346486c4cb02c7fcbec6558c3b7b1841f755 100644 (file)
@@ -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 {