Commit 7b4495c0 authored by Rob Pike's avatar Rob Pike

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

R=ken2
CC=golang-dev
https://golang.org/cl/4035041
parent 141a4a17
......@@ -303,7 +303,7 @@ func (b *Buffer) UnreadByte() os.Error {
// 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
// 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.
func NewBuffer(buf []byte) *Buffer { return &Buffer{buf: buf} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment