aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustyn Temme <justyntemme@gmail.com>2016-06-19 20:39:58 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2016-06-28 18:16:25 +0000
commitb0838ca292f0c62ac9d45a92b520160ed052cb26 (patch)
tree3c5cc9fe91839d0af63b2b2c7dc802172827923b
parentb5f0aff49503e31002b33198e06708e263c445a7 (diff)
downloadgo-b0838ca292f0c62ac9d45a92b520160ed052cb26.tar.gz
go-b0838ca292f0c62ac9d45a92b520160ed052cb26.zip
strconv: clarify doc for Atoi return type
Change-Id: I47bd98509663d75b0d4dedbdb778e803d90053cf Reviewed-on: https://go-review.googlesource.com/24216 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r--src/strconv/atoi.go2
1 files changed, 1 insertions, 1 deletions
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