From 6adbc545f69a924fc5bd98eae14bda80c47d118b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 30 Jan 2013 08:46:50 -0800 Subject: [PATCH] cmd/dist: fix code example in README Fixes #4729. R=golang-dev, iant CC=golang-dev https://golang.org/cl/7232060 --- src/cmd/dist/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/dist/README b/src/cmd/dist/README index cf194faf08..e6d08cf028 100644 --- a/src/cmd/dist/README +++ b/src/cmd/dist/README @@ -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);