]> Cypherpunks repositories - gostls13.git/commitdiff
bytes.Buffer: fix typo in comment (doubled 'to')
authorRob Pike <r@golang.org>
Sat, 15 Jan 2011 07:00:02 +0000 (23:00 -0800)
committerRob Pike <r@golang.org>
Sat, 15 Jan 2011 07:00:02 +0000 (23:00 -0800)
R=ken2
CC=golang-dev
https://golang.org/cl/4035041

src/pkg/bytes/buffer.go

index 2574b4f4329852383f2212d51b8ea8e3fb79090c..62cf82810e79204add4496491615bc28d8c1e898 100644 (file)
@@ -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} }