commit | 5be24046c7b40d0ed522cba8d38c45e406269b28 | [log] [tgz] |
---|---|---|
author | Rob Pike <r@golang.org> | Mon Feb 06 14:09:00 2012 +1100 |
committer | Rob Pike <r@golang.org> | Mon Feb 06 14:09:00 2012 +1100 |
tree | 2496442da16e906f79e968ba2046e63ba4885e39 | |
parent | 9440d823a504d581ef82c53f1bf69b4b0f8e2d55 [diff] |
all: avoid bytes.NewBuffer(nil) The practice encourages people to think this is the way to create a bytes.Buffer when new(bytes.Buffer) or just var buf bytes.Buffer work fine. (html/token.go was missing the point altogether.) R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/5637043