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

Unified Diff: src/cmd/ebnflint/ebnflint.go

Issue 156115: code review 156115: gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkg (Closed)
Patch Set: code review 156115: gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkg Created 15 years, 4 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/cmd/cgo/util.go ('k') | src/cmd/godoc/godoc.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/ebnflint/ebnflint.go
===================================================================
--- a/src/cmd/ebnflint/ebnflint.go
+++ b/src/cmd/ebnflint/ebnflint.go
@@ -54,7 +54,7 @@
}
// j = end of EBNF text (or end of source)
- j := bytes.Index(src[i:len(src)], close); // close marker
+ j := bytes.Index(src[i:], close); // close marker
if j < 0 {
j = len(src) - i
}
@@ -64,7 +64,7 @@
buf.Write(src[i:j]);
// advance
- src = src[j:len(src)];
+ src = src[j:];
}
return buf.Bytes();
« no previous file with comments | « src/cmd/cgo/util.go ('k') | src/cmd/godoc/godoc.go » ('j') | no next file with comments »

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