Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Unified Diff: src/pkg/go/parser/interface.go

Issue 224062: code review 224062: strings: delete Runes, Bytes (Closed)
Patch Set: code review 224062: strings: delete Runes, Bytes Created 15 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/go/doc/comment.go ('k') | src/pkg/go/printer/nodes.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/go/parser/interface.go
===================================================================
--- a/src/pkg/go/parser/interface.go
+++ b/src/pkg/go/parser/interface.go
@@ -15,7 +15,6 @@
"io/ioutil"
"os"
pathutil "path"
- "strings"
)
@@ -27,7 +26,7 @@
if src != nil {
switch s := src.(type) {
case string:
- return strings.Bytes(s), nil
+ return []byte(s), nil
case []byte:
return s, nil
case *bytes.Buffer:
« no previous file with comments | « src/pkg/go/doc/comment.go ('k') | src/pkg/go/printer/nodes.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b