summaryrefslogtreecommitdiff
path: root/src/pkg/json
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-09-17 23:51:06 -0700
committerRob Pike <r@golang.org>2009-09-17 23:51:06 -0700
commit7b79ee2545d11bb332aa2ba5e2b1a2509b0aa313 (patch)
treedf353ed3ad6cfa68e97dbaba2e601842547d1dd5 /src/pkg/json
parent94cb5a646b38b4ac3c4b9e04409e6e5a5e6d5056 (diff)
downloadgolang-7b79ee2545d11bb332aa2ba5e2b1a2509b0aa313.tar.gz
use buf.String() instead of string(buf.Bytes())
use strings.Buffer instead of bytes.Buffer in some places R=rsc DELTA=40 (0 added, 3 deleted, 37 changed) OCL=34770 CL=34775
Diffstat (limited to 'src/pkg/json')
-rw-r--r--src/pkg/json/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/json/parse.go b/src/pkg/json/parse.go
index 1607013b2..6937e2816 100644
--- a/src/pkg/json/parse.go
+++ b/src/pkg/json/parse.go
@@ -166,7 +166,7 @@ func Quote(s string) string {
}
chr[0] = '"';
b.Write(chr0);
- return string(b.Bytes());
+ return b.String();
}