Commit 6adbc545 authored by Russ Cox's avatar Russ Cox

cmd/dist: fix code example in README

Fixes #4729.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7232060
parent 51ef3769
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment