aboutsummaryrefslogtreecommitdiff
path: root/src/strconv
diff options
context:
space:
mode:
authorEndlessCheng <loli.con@qq.com>2021-05-04 01:00:37 +0000
committerIan Lance Taylor <iant@golang.org>2021-05-04 03:22:47 +0000
commit138d2c9b88d9e3d5adcebf9cb7c356b43d6a9782 (patch)
tree35f815204a8dd0c4723144b91d294ab7d3e671ea /src/strconv
parente3769299cd3484e018e0e2a6e1b95c2b18ce4f41 (diff)
downloadgo-138d2c9b88d9e3d5adcebf9cb7c356b43d6a9782.tar.gz
go-138d2c9b88d9e3d5adcebf9cb7c356b43d6a9782.zip
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 <gri@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/strconv')
-rw-r--r--src/strconv/atoi.go2
1 files changed, 1 insertions, 1 deletions
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