]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: fix code example in README
authorRuss Cox <rsc@golang.org>
Wed, 30 Jan 2013 16:46:50 +0000 (08:46 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 30 Jan 2013 16:46:50 +0000 (08:46 -0800)
Fixes #4729.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7232060

src/cmd/dist/README

index cf194faf08a68c7e9953cea1562e9ec2ea958485..e6d08cf0284be3c75c9856755e66bf8fe1233be8 100644 (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);