Commit b0838ca2 authored by Justyn Temme's avatar Justyn Temme Committed by Brad Fitzpatrick

strconv: clarify doc for Atoi return type

Change-Id: I47bd98509663d75b0d4dedbdb778e803d90053cf
Reviewed-on: https://go-review.googlesource.com/24216Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent b5f0aff4
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment