From 755e009ad2a874373454d488f9ea46648a8a9547 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 29 Jun 2009 15:24:23 -0700 Subject: io.StringBytes -> strings.Bytes io.ByteBuffer -> bytes.Buffer left io.ByteBuffer stub around for now, for protocol compiler. R=r OCL=30861 CL=30872 --- src/pkg/json/parse.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pkg/json/parse.go') diff --git a/src/pkg/json/parse.go b/src/pkg/json/parse.go index e33b9dbc1..a95d7d215 100644 --- a/src/pkg/json/parse.go +++ b/src/pkg/json/parse.go @@ -11,8 +11,8 @@ package json import ( + "bytes"; "fmt"; - "io"; "math"; "strconv"; "strings"; @@ -127,7 +127,7 @@ func Unquote(s string) (t string, ok bool) { func Quote(s string) string { chr := make([]byte, utf8.UTFMax); chr0 := chr[0:1]; - b := new(io.ByteBuffer); + b := new(bytes.Buffer); chr[0] = '"'; b.Write(chr0); for i := 0; i < len(s); i++ { -- cgit v1.2.3