mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue