From 69c4e9380bdd34eefe8c1e49f203964a17e5bee3 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 27 Oct 2010 19:47:23 -0700 Subject: use append R=gri, r, r2 CC=golang-dev https://golang.org/cl/2743042 --- src/pkg/bytes/bytes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pkg/bytes/bytes.go') diff --git a/src/pkg/bytes/bytes.go b/src/pkg/bytes/bytes.go index 62311d41d6..1939fd5678 100644 --- a/src/pkg/bytes/bytes.go +++ b/src/pkg/bytes/bytes.go @@ -545,7 +545,7 @@ func resize(n int) int { // Add appends the contents of 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 Add(s, t []byte) []byte { +func Add(s, t []byte) []byte { // TODO lens := len(s) lent := len(t) if lens+lent <= cap(s) { @@ -562,7 +562,7 @@ func Add(s, t []byte) []byte { // 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 { +func AddByte(s []byte, t byte) []byte { // TODO lens := len(s) if lens+1 <= cap(s) { s = s[0 : lens+1] -- cgit v1.3-5-g9baa