mirror of
https://github.com/golang/go
synced 2024-11-18 20:04:52 -07:00
strconv: corrected several bad references to err.Error in doc comments.
R=golang-dev, r CC=golang-dev https://golang.org/cl/10253051
This commit is contained in:
parent
92ea9fa108
commit
bc08124866
@ -536,11 +536,11 @@ func atof64(s string) (f float64, err error) {
|
|||||||
// The errors that ParseFloat returns have concrete type *NumError
|
// The errors that ParseFloat returns have concrete type *NumError
|
||||||
// and include err.Num = s.
|
// and include err.Num = s.
|
||||||
//
|
//
|
||||||
// If s is not syntactically well-formed, ParseFloat returns err.Error = ErrSyntax.
|
// If s is not syntactically well-formed, ParseFloat returns err.Err = ErrSyntax.
|
||||||
//
|
//
|
||||||
// If s is syntactically well-formed but is more than 1/2 ULP
|
// If s is syntactically well-formed but is more than 1/2 ULP
|
||||||
// away from the largest floating point number of the given size,
|
// away from the largest floating point number of the given size,
|
||||||
// ParseFloat returns f = ±Inf, err.Error = ErrRange.
|
// ParseFloat returns f = ±Inf, err.Err = ErrRange.
|
||||||
func ParseFloat(s string, bitSize int) (f float64, err error) {
|
func ParseFloat(s string, bitSize int) (f float64, err error) {
|
||||||
if bitSize == 32 {
|
if bitSize == 32 {
|
||||||
f1, err1 := atof32(s)
|
f1, err1 := atof32(s)
|
||||||
|
@ -141,9 +141,9 @@ Error:
|
|||||||
//
|
//
|
||||||
// The errors that ParseInt returns have concrete type *NumError
|
// The errors that ParseInt returns have concrete type *NumError
|
||||||
// and include err.Num = s. If s is empty or contains invalid
|
// and include err.Num = s. If s is empty or contains invalid
|
||||||
// digits, err.Error = ErrSyntax; if the value corresponding
|
// digits, err.Err = ErrSyntax; if the value corresponding
|
||||||
// to s cannot be represented by a signed integer of the
|
// to s cannot be represented by a signed integer of the
|
||||||
// given size, err.Error = ErrRange.
|
// given size, err.Err = ErrRange.
|
||||||
func ParseInt(s string, base int, bitSize int) (i int64, err error) {
|
func ParseInt(s string, base int, bitSize int) (i int64, err error) {
|
||||||
const fnParseInt = "ParseInt"
|
const fnParseInt = "ParseInt"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user