aboutsummaryrefslogtreecommitdiff
path: root/src/bytes
diff options
context:
space:
mode:
authorGabriel Aszalos <gabriel.aszalos@gmail.com>2017-10-04 16:58:36 +0300
committerIan Lance Taylor <iant@golang.org>2017-10-04 14:27:22 +0000
commit52abe50c33b3ecfff2d324ca9d74a1c5c0f719e5 (patch)
tree35fe547b1765191b4b120db37db11754359ec6a1 /src/bytes
parent034666442168ce1ce3f9136dbd5657ca360913fc (diff)
downloadgo-52abe50c33b3ecfff2d324ca9d74a1c5c0f719e5.tar.xz
bytes: correct Map documentation
Fix incorrect reference to string instead of byte slice. Change-Id: I95553da32acfbcf5dde9613b07ea38408cb31ae8 Reviewed-on: https://go-review.googlesource.com/68090 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/bytes')
-rw-r--r--src/bytes/bytes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytes/bytes.go b/src/bytes/bytes.go
index 286cd4454d..40d76be094 100644
--- a/src/bytes/bytes.go
+++ b/src/bytes/bytes.go
@@ -405,7 +405,7 @@ func HasSuffix(s, suffix []byte) bool {
// Map returns a copy of the byte slice s with all its characters modified
// according to the mapping function. If mapping returns a negative value, the character is
-// dropped from the string with no replacement. The characters in s and the
+// dropped from the byte slice with no replacement. The characters in s and the
// output are interpreted as UTF-8-encoded code points.
func Map(mapping func(r rune) rune, s []byte) []byte {
// In the worst case, the slice can grow when mapped, making