bytes.Buffer: fix typo in comment (doubled 'to')

R=ken2
CC=golang-dev
https://golang.org/cl/4035041
This commit is contained in:
Rob Pike 2011-01-14 23:00:02 -08:00
parent 141a4a1759
commit 7b4495c041

View File

@ -303,7 +303,7 @@ func (b *Buffer) UnreadByte() os.Error {
// NewBuffer creates and initializes a new Buffer using buf as its initial // NewBuffer creates and initializes a new Buffer using buf as its initial
// contents. It is intended to prepare a Buffer to read existing data. It // contents. It is intended to prepare a Buffer to read existing data. It
// can also be used to to size the internal buffer for writing. To do that, // can also be used to size the internal buffer for writing. To do that,
// buf should have the desired capacity but a length of zero. // buf should have the desired capacity but a length of zero.
func NewBuffer(buf []byte) *Buffer { return &Buffer{buf: buf} } func NewBuffer(buf []byte) *Buffer { return &Buffer{buf: buf} }