From: EndlessCheng Date: Tue, 4 May 2021 01:00:37 +0000 (+0000) Subject: strconv: fix a typo X-Git-Tag: go1.17beta1~272 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=138d2c9b88;p=gostls13.git strconv: fix a typo 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 Reviewed-by: Ian Lance Taylor --- diff --git a/src/strconv/atoi.go b/src/strconv/atoi.go index f6c4efaef6..c9ba0383b3 100644 --- a/src/strconv/atoi.go +++ b/src/strconv/atoi.go @@ -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