diff options
Diffstat (limited to 'libgo/go/strconv/atoi.go')
-rw-r--r-- | libgo/go/strconv/atoi.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libgo/go/strconv/atoi.go b/libgo/go/strconv/atoi.go index 21c69009653..2d0db7155f7 100644 --- a/libgo/go/strconv/atoi.go +++ b/libgo/go/strconv/atoi.go @@ -33,7 +33,8 @@ func rangeError(fn, str string) *NumError { const intSize = 32 << uint(^uint(0)>>63) -const IntSize = intSize // number of bits in int, uint (32 or 64) +// IntSize is the size in bits of an int or uint value. +const IntSize = intSize // Return the first number n such that n*base >= 1<<64. func cutoff64(base int) uint64 { @@ -141,9 +142,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" |