]> Cypherpunks repositories - gostls13.git/commitdiff
bytes: fix typo in AddByte comment
authorAndrew Gerrand <adg@golang.org>
Mon, 27 Sep 2010 01:41:43 +0000 (11:41 +1000)
committerAndrew Gerrand <adg@golang.org>
Mon, 27 Sep 2010 01:41:43 +0000 (11:41 +1000)
Fixes #1140.

R=golang-dev
CC=golang-dev
https://golang.org/cl/2240043

src/pkg/bytes/bytes.go

index b76dc3563e5c857e93e4d9b06448a45ff38c1b74..458f407771da97a3ffa84f5f41c8f37133c99c42 100644 (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 {