From: Emmanuel T Odeke
Date: Wed, 21 Aug 2019 05:09:31 +0000 (-0600)
Subject: [release-branch.go1.13] doc/go1.13: document _ between digits for math/big, strconv
X-Git-Tag: go1.13rc2~12
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a5a92aa6733d96ed7ccd4882bbf0fadb8fd098b6;p=gostls13.git
[release-branch.go1.13] doc/go1.13: document _ between digits for math/big, strconv
Document that:
* math/big.Float.Parse
* math/big.Int.SetString
* strconv.ParseFloat
* strconv.ParseInt
* strconv.ParseUint
now accept underscores to group digits only if base = 0,
as per the Go 2 language changes.
Updates #32815
Change-Id: Id45bd803a18442436419739297e8aed0d32ca56c
Reviewed-on: https://go-review.googlesource.com/c/go/+/191077
Reviewed-by: Robert Griesemer
(cherry picked from commit e764432605cb26478067890b49f4f16019c9a9b9)
Reviewed-on: https://go-review.googlesource.com/c/go/+/191477
Run-TryBot: Andrew Bonventre
Reviewed-by: Emmanuel Odeke
TryBot-Result: Gobot Gobot
---
diff --git a/doc/go1.13.html b/doc/go1.13.html
index 30ea1a5c30..6cee0b28e6 100644
--- a/doc/go1.13.html
+++ b/doc/go1.13.html
@@ -723,6 +723,18 @@ godoc
The new Rat.SetUint64
method sets the Rat
to a uint64
value.
+
+ For Float.Parse
, if base is 0, underscores
+ may be used between digits for readability.
+ See the Changes to the language for details.
+
+
+
+ For Int.SetString
, if base is 0, underscores
+ may be used between digits for readability.
+ See the Changes to the language for details.
+
+
Rat.SetString
now accepts non-decimal floating point representations.
@@ -888,6 +900,18 @@ godoc
+- strconv
+ -
+
+ For strconv.ParseFloat
,
+ strconv.ParseInt
+ and strconv.ParseUint
,
+ if base is 0, underscores may be used between digits for readability.
+ See the Changes to the language for details.
+
+
+
+
- strings
-