]> Cypherpunks repositories - gostls13.git/commit
bytes: API tweaks
authorRob Pike <r@golang.org>
Mon, 6 Feb 2012 04:29:21 +0000 (15:29 +1100)
committerRob Pike <r@golang.org>
Mon, 6 Feb 2012 04:29:21 +0000 (15:29 +1100)
commit0a75a79cc063d0149921c2248c6ef0fa9583174d
treee157b0737ab9bf97b4d664157144074e213dafb8
parent929203acef30ff26bb645ce625a61336c9491235
bytes: API tweaks
- fix documentation for NewBuffer and NewBufferString
- document and implement behavior of Truncate on invalid lengths

Fixes #2837.

R=rsc, adg
CC=golang-dev
https://golang.org/cl/5637044
src/pkg/bytes/buffer.go