]> Cypherpunks repositories - gostls13.git/commitdiff
strconv: corrected several bad references to err.Error in doc comments.
authorCaleb Spare <cespare@gmail.com>
Fri, 14 Jun 2013 00:04:47 +0000 (17:04 -0700)
committerRob Pike <r@golang.org>
Fri, 14 Jun 2013 00:04:47 +0000 (17:04 -0700)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/10253051

src/pkg/strconv/atof.go
src/pkg/strconv/atoi.go

index b4fe97d127c739e754458fb331a67f9266014664..1b3f8fb33de66734c9b52a47b07e00f16a5cfc84 100644 (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)
index 21c690096531462fd6b8d6cec8a94fae57e293e8..b06979b0c0571d5c8ba4df3ac993c7d9899f79d8 100644 (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"