1
0
mirror of https://github.com/golang/go synced 2024-11-24 17:00:01 -07:00

bytes: fix typo in AddByte comment

Fixes #1140.

R=golang-dev
CC=golang-dev
https://golang.org/cl/2240043
This commit is contained in:
Andrew Gerrand 2010-09-27 11:41:43 +10:00
parent e4245f2502
commit b15b0a0cd9

View File

@ -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 {