Skip to content

Commit bd2e281

Browse files
odeke-emandybons
authored andcommitted
[release-branch.go1.13] strconv: update documentation
Fixes golang#33750. Updates golang#31197. Change-Id: I26f63cef57e5f0eec85b84554c82f6d47b4f41a1 Reviewed-on: https://go-review.googlesource.com/c/go/+/191078 Reviewed-by: Robert Griesemer <[email protected]> (cherry picked from commit d9b1323) Reviewed-on: https://go-review.googlesource.com/c/go/+/191168 Run-TryBot: Andrew Bonventre <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Emmanuel Odeke <[email protected]>
1 parent ed4f3f3 commit bd2e281

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/strconv/atof.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ func atof64(s string) (f float64, err error) {
643643
// ParseFloat returns the nearest floating-point number rounded
644644
// using IEEE754 unbiased rounding.
645645
// (Parsing a hexadecimal floating-point value only rounds when
646-
// there are more bits in the hexadecimal representatiton than
646+
// there are more bits in the hexadecimal representation than
647647
// will fit in the mantissa.)
648648
//
649649
// The errors that ParseFloat returns have concrete type *NumError

src/strconv/atoi.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ func ParseUint(s string, base int, bitSize int) (uint64, error) {
154154
//
155155
// If base == 0, the base is implied by the string's prefix:
156156
// base 2 for "0b", base 8 for "0" or "0o", base 16 for "0x",
157-
// and base 10 otherwise.
157+
// and base 10 otherwise. Also, for base == 0 only, underscore
158+
// characters are permitted per the Go integer literal syntax.
158159
// If base is below 0, is 1, or is above 36, an error is returned.
159160
//
160161
// The bitSize argument specifies the integer type

0 commit comments

Comments
 (0)