aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2010-09-27 11:41:43 +1000
committerAndrew Gerrand <adg@golang.org>2010-09-27 11:41:43 +1000
commitb15b0a0cd9e4e774e20ea1292c7076650aef0fb8 (patch)
tree9dac8869d1657de08bd5f6482708645bb82313ee
parente4245f25027bfeb162d0aed6e3af5f805a5d33a4 (diff)
downloadgo-b15b0a0cd9e4e774e20ea1292c7076650aef0fb8.tar.gz
go-b15b0a0cd9e4e774e20ea1292c7076650aef0fb8.zip
bytes: fix typo in AddByte comment
Fixes #1140. R=golang-dev CC=golang-dev https://golang.org/cl/2240043
-rw-r--r--src/pkg/bytes/bytes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/bytes/bytes.go b/src/pkg/bytes/bytes.go
index b76dc3563e..458f407771 100644
--- a/src/pkg/bytes/bytes.go
+++ b/src/pkg/bytes/bytes.go
@@ -561,7 +561,7 @@ func Add(s, t []byte) []byte {
return s
}
-// AddByte appends byte b to the end of s and returns the result.
+// AddByte appends byte t to the end of s and returns the result.
// If s has enough capacity, it is extended in place; otherwise a
// new array is allocated and returned.
func AddByte(s []byte, t byte) []byte {