]> Cypherpunks repositories - gostls13.git/commit
strconv: document handling of NaN and ±Inf
authorAndrew Gerrand <adg@golang.org>
Fri, 31 May 2019 10:59:35 +0000 (20:59 +1000)
committerAndrew Gerrand <adg@golang.org>
Fri, 31 May 2019 11:26:23 +0000 (11:26 +0000)
commit2165452a37b156d154a6e2dc85495b23a4a61565
tree4f8200e046dbc3020fcfb2d190bc76a325fa4acf
parentd53f380e620c59cb3f30736584879c3c104ee488
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>
src/strconv/atof.go
src/strconv/example_test.go