aboutsummaryrefslogtreecommitdiff
path: root/src/strconv
diff options
context:
space:
mode:
author90364136+butterfly1924@users.noreply.github.com <90364136+butterfly1924@users.noreply.github.com>2022-06-06 05:10:38 +0000
committerGopher Robot <gobot@golang.org>2022-06-06 18:50:50 +0000
commitd43ddc1f3fb25b4338433435caae7e6f4b3138a9 (patch)
tree4fdbc5d11e43e223ff0a0bf1ecc986fd053996c3 /src/strconv
parent2fa45a4fcd57070967f081f3a5c33014c3f29fea (diff)
downloadgo-d43ddc1f3fb25b4338433435caae7e6f4b3138a9.tar.gz
go-d43ddc1f3fb25b4338433435caae7e6f4b3138a9.zip
strconv: fix typo in atof.go
strings for 'NaN' -> string for 'NaN' Change-Id: Ia415644a1b651e6ef9996ad24dd9708a60e57dfc GitHub-Last-Rev: 877f1c3eb1dc885915ae75385c5d38ee6f5fd9b1 GitHub-Pull-Request: golang/go#53246 Reviewed-on: https://go-review.googlesource.com/c/go/+/410494 Auto-Submit: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/strconv')
-rw-r--r--src/strconv/atof.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strconv/atof.go b/src/strconv/atof.go
index c26c34208c..8fc90425f6 100644
--- a/src/strconv/atof.go
+++ b/src/strconv/atof.go
@@ -688,7 +688,7 @@ func atof64(s string) (f float64, n int, err error) {
// away from the largest floating point number of the given size,
// ParseFloat returns f = ±Inf, err.Err = ErrRange.
//
-// ParseFloat recognizes the strings "NaN", and the (possibly signed) strings "Inf" and "Infinity"
+// ParseFloat recognizes the string "NaN", and the (possibly signed) strings "Inf" and "Infinity"
// as their respective special floating point values. It ignores case when matching.
//
// [floating-point literals]: https://go.dev/ref/spec#Floating-point_literals