1
0
mirror of https://github.com/golang/go synced 2024-11-26 22:11:25 -07:00

cmd/dist: fix code example in README

Fixes #4729.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7232060
This commit is contained in:
Russ Cox 2013-01-30 08:46:50 -08:00
parent 51ef37699f
commit 6adbc545f6

4
src/cmd/dist/README vendored
View File

@ -31,8 +31,8 @@ Bufs or Vecs on the stack should be
... main code ...
bprintf(&b1, "hello, world");
vadd(&v1, bstr(&b1)); // v1 takes a copy of its argument
bprintf(&b1, "another string");
vadd(&v1, bstr(&b1)); // v1 now has two strings
bprintf(&b2, "another string");
vadd(&v1, bstr(&b2)); // v1 now has two strings
bfree(&b1);
bfree(&b2);