From b0838ca292f0c62ac9d45a92b520160ed052cb26 Mon Sep 17 00:00:00 2001 From: Justyn Temme Date: Sun, 19 Jun 2016 20:39:58 +0000 Subject: [PATCH] strconv: clarify doc for Atoi return type Change-Id: I47bd98509663d75b0d4dedbdb778e803d90053cf Reviewed-on: https://go-review.googlesource.com/24216 Reviewed-by: Brad Fitzpatrick --- src/strconv/atoi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0