From 138d2c9b88d9e3d5adcebf9cb7c356b43d6a9782 Mon Sep 17 00:00:00 2001 From: EndlessCheng Date: Tue, 4 May 2021 01:00:37 +0000 Subject: [PATCH] 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 --- src/strconv/atoi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0