1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:38:33 -06: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:
Caleb Spare 2013-06-13 17:04:47 -07:00 committed by Rob Pike
parent 92ea9fa108
commit bc08124866
2 changed files with 4 additions and 4 deletions

View File

@ -536,11 +536,11 @@ func atof64(s string) (f float64, err error) {
// The errors that ParseFloat returns have concrete type *NumError
// 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
// 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) {
if bitSize == 32 {
f1, err1 := atof32(s)

View File

@ -141,9 +141,9 @@ Error:
//
// The errors that ParseInt returns have concrete type *NumError
// 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
// given size, err.Error = ErrRange.
// given size, err.Err = ErrRange.
func ParseInt(s string, base int, bitSize int) (i int64, err error) {
const fnParseInt = "ParseInt"