From: Justyn Temme Date: Sun, 19 Jun 2016 20:39:58 +0000 (+0000) Subject: strconv: clarify doc for Atoi return type X-Git-Tag: go1.7rc1~34 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b0838ca292f0c62ac9d45a92b520160ed052cb26;p=gostls13.git strconv: clarify doc for Atoi return type Change-Id: I47bd98509663d75b0d4dedbdb778e803d90053cf Reviewed-on: https://go-review.googlesource.com/24216 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/strconv/atoi.go b/src/strconv/atoi.go index 8fd966eaf8..a236de421c 100644 --- a/src/strconv/atoi.go +++ b/src/strconv/atoi.go @@ -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