mirror of
https://github.com/golang/go
synced 2024-11-18 18:04:46 -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:
parent
51ef37699f
commit
6adbc545f6
4
src/cmd/dist/README
vendored
4
src/cmd/dist/README
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user