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

Unified Diff: src/pkg/encoding/xml/xml.go

Issue 12486043: code review 12486043: all: use strings.IndexByte instead of Index where possible (Closed)
Patch Set: diff -r b2b6f8df031e https://go.googlecode.com/hg/ Created 11 years, 7 months 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/encoding/xml/typeinfo.go ('k') | src/pkg/go/build/build.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/encoding/xml/xml.go
===================================================================
--- a/src/pkg/encoding/xml/xml.go
+++ b/src/pkg/encoding/xml/xml.go
@@ -1026,7 +1026,7 @@
if !ok {
return
}
- i := strings.Index(s, ":")
+ i := strings.IndexByte(s, ':')
if i < 0 {
name.Local = s
} else {
« no previous file with comments | « src/pkg/encoding/xml/typeinfo.go ('k') | src/pkg/go/build/build.go » ('j') | no next file with comments »

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