]> Cypherpunks repositories - gostls13.git/commitdiff
strconv: fix a typo
authorEndlessCheng <loli.con@qq.com>
Tue, 4 May 2021 01:00:37 +0000 (01:00 +0000)
committerIan Lance Taylor <iant@golang.org>
Tue, 4 May 2021 03:22:47 +0000 (03:22 +0000)
Change-Id: I17911dc95fb2126b41dc95f8839c4b3fa8f35d12
GitHub-Last-Rev: 88e120329301bd73db39e1081737a83f49a5672b
GitHub-Pull-Request: golang/go#45933
Reviewed-on: https://go-review.googlesource.com/c/go/+/316689
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/strconv/atoi.go

index f6c4efaef60165477f15ea5fc07cbb530212e6fa..c9ba0383b3f86ee13d294af315926e32cfd076fc 100644 (file)
@@ -143,7 +143,7 @@ func ParseUint(s string, base int, bitSize int) (uint64, error) {
 
                n1 := n + uint64(d)
                if n1 < n || n1 > maxVal {
-                       // n+v overflows
+                       // n+d overflows
                        return maxVal, rangeError(fnParseUint, s0)
                }
                n = n1