aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/datafmt/parser.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-06-29 15:24:23 -0700
committerRuss Cox <rsc@golang.org>2009-06-29 15:24:23 -0700
commitd3a412a5abf1ee8815b2e70a18ee092154af7672 (patch)
treeed3d700304a76b08cdca0f356605077c58ee0f76 /src/pkg/datafmt/parser.go
parentb948c437a1173152cc375b5cb98cd322e9eaf30b (diff)
downloadgo-d3a412a5abf1ee8815b2e70a18ee092154af7672.tar.xz
io.StringBytes -> strings.Bytes
io.ByteBuffer -> bytes.Buffer left io.ByteBuffer stub around for now, for protocol compiler. R=r OCL=30861 CL=30872
Diffstat (limited to 'src/pkg/datafmt/parser.go')
-rw-r--r--src/pkg/datafmt/parser.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/datafmt/parser.go b/src/pkg/datafmt/parser.go
index 0d597dcb5f..17d4be982e 100644
--- a/src/pkg/datafmt/parser.go
+++ b/src/pkg/datafmt/parser.go
@@ -10,7 +10,6 @@ import (
"fmt";
"go/scanner";
"go/token";
- "io";
"os";
"strconv";
"strings";
@@ -194,7 +193,7 @@ func (p *parser) parseString() string {
func (p *parser) parseLiteral() literal {
- s := io.StringBytes(p.parseString());
+ s := strings.Bytes(p.parseString());
// A string literal may contain %-format specifiers. To simplify
// and speed up printing of the literal, split it into segments