mirror of
https://github.com/golang/go
synced 2024-11-25 00:47:56 -07:00
bytes.Buffer: fix typo in comment (doubled 'to')
R=ken2 CC=golang-dev https://golang.org/cl/4035041
This commit is contained in:
parent
141a4a1759
commit
7b4495c041
@ -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} }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user