]> Cypherpunks repositories - gostls13.git/commitdiff
strconv: clarify doc for Atoi return type
authorJustyn Temme <justyntemme@gmail.com>
Sun, 19 Jun 2016 20:39:58 +0000 (20:39 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 28 Jun 2016 18:16:25 +0000 (18:16 +0000)
Change-Id: I47bd98509663d75b0d4dedbdb778e803d90053cf
Reviewed-on: https://go-review.googlesource.com/24216
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/strconv/atoi.go

index 8fd966eaf8bc454d4d0477cc8946ce4ef11452af..a236de421c6023f843d4e02fb5f958afc5142f1d 100644 (file)
@@ -197,7 +197,7 @@ func ParseInt(s string, base int, bitSize int) (i int64, err error) {
        return n, nil
 }
 
-// Atoi is shorthand for ParseInt(s, 10, 0).
+// Atoi returns the result of ParseInt(s, 10, 0) converted to type int.
 func Atoi(s string) (int, error) {
        i64, err := ParseInt(s, 10, 0)
        return int(i64), err