aboutsummaryrefslogtreecommitdiff
path: root/src/strconv
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2018-12-30 08:22:27 -1000
committerJosh Bleecher Snyder <josharian@gmail.com>2018-12-31 22:48:43 +0000
commited78c90a784f9703857c3303d871b973ee2f0102 (patch)
treeca7290de3e1ea72df7a9dd1861a1850c17db43de /src/strconv
parent480373c7560cd64e4b6c624d84e9d0de6d72c076 (diff)
downloadgo-ed78c90a784f9703857c3303d871b973ee2f0102.tar.gz
go-ed78c90a784f9703857c3303d871b973ee2f0102.zip
strconv: make docs for Itoa and Atoi slightly higher level
Fixes #29461 Change-Id: I5db8bc80e5bd0778dced8471581c67e66853aada Reviewed-on: https://go-review.googlesource.com/c/155924 Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/strconv')
-rw-r--r--src/strconv/atoi.go2
-rw-r--r--src/strconv/itoa.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/strconv/atoi.go b/src/strconv/atoi.go
index bbfdb7dc39..ff33d555e4 100644
--- a/src/strconv/atoi.go
+++ b/src/strconv/atoi.go
@@ -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"
diff --git a/src/strconv/itoa.go b/src/strconv/itoa.go
index 4aaf57830c..45e4192c82 100644
--- a/src/strconv/itoa.go
+++ b/src/strconv/itoa.go
@@ -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)
}