go/src/strconv
Andrew Gerrand 2165452a37 strconv: document handling of NaN and ±Inf
In addition to the example that was added in 203b80ab, mention these
special cases in the doc comment. This change also adjusts the example
to include "+Inf", as it was not otherwise mentioned that the plus
symbol may be present.

Fix #30990

Change-Id: I97d66f4aff6a17a6ccc0ee2e7f32e39ae91ae454
Reviewed-on: https://go-review.googlesource.com/c/go/+/179738
Reviewed-by: Alex Miasoedov <msoedov@gmail.com>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Run-TryBot: Benny Siegert <bsiegert@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-05-31 11:26:23 +00:00
..
testdata
atob.go
atob_test.go
atof.go strconv: document handling of NaN and ±Inf 2019-05-31 11:26:23 +00:00
atof_test.go strconv: accept underscores in ParseInt, ParseUint, ParseFloat 2019-02-12 14:48:24 +00:00
atoi.go strconv: add 0b, 0o integer prefixes in ParseInt, ParseUint 2019-02-12 14:48:26 +00:00
atoi_test.go strconv: remove use of DeepEqual for testing errors 2019-02-27 18:23:19 +00:00
decimal.go
decimal_test.go
doc.go strconv: add missing package name into doc.go(godoc overview) 2018-12-30 18:30:11 +00:00
example_test.go strconv: document handling of NaN and ±Inf 2019-05-31 11:26:23 +00:00
export_test.go
extfloat.go strconv: simplify (*extFloat).Multiply using math/bits.Mul64 2019-03-04 22:25:21 +00:00
fp_test.go
ftoa.go strconv: fix rounding in FormatFloat fallback path 2019-05-23 15:41:19 +00:00
ftoa_test.go strconv: fix rounding in FormatFloat fallback path 2019-05-23 15:41:19 +00:00
internal_test.go
isprint.go all: update to Unicode 11 2019-04-25 20:33:22 +00:00
itoa.go strconv: make docs for Itoa and Atoi slightly higher level 2018-12-31 22:48:43 +00:00
itoa_test.go
makeisprint.go
quote.go strconv: pre-allocate in appendQuotedWith 2019-04-18 04:30:46 +00:00
quote_test.go
strconv_test.go strconv: pre-allocate in appendQuotedWith 2019-04-18 04:30:46 +00:00