]> Cypherpunks repositories - gostls13.git/commitdiff
strconv: make docs for Itoa and Atoi slightly higher level
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 30 Dec 2018 18:22:27 +0000 (08:22 -1000)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 31 Dec 2018 22:48:43 +0000 (22:48 +0000)
Fixes #29461

Change-Id: I5db8bc80e5bd0778dced8471581c67e66853aada
Reviewed-on: https://go-review.googlesource.com/c/155924
Reviewed-by: Rob Pike <r@golang.org>
src/strconv/atoi.go
src/strconv/itoa.go

index bbfdb7dc3934e8719234f978999d09ca4e75edd9..ff33d555e49830d343cfb51d9747f94a935c501d 100644 (file)
@@ -198,7 +198,7 @@ func ParseInt(s string, base int, bitSize int) (i int64, err error) {
        return n, nil
 }
 
-// Atoi returns the result of ParseInt(s, 10, 0) converted to type int.
+// Atoi is equivalent to ParseInt(s, 10, 0), converted to type int.
 func Atoi(s string) (int, error) {
        const fnAtoi = "Atoi"
 
index 4aaf57830cf71c80e70faa77e68a7027c1ba7a16..45e4192c82e16f439dd709bd02a1a9481a259040 100644 (file)
@@ -30,7 +30,7 @@ func FormatInt(i int64, base int) string {
        return s
 }
 
-// Itoa is shorthand for FormatInt(int64(i), 10).
+// Itoa is equivalent to FormatInt(int64(i), 10).
 func Itoa(i int) string {
        return FormatInt(int64(i), 10)
 }