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

Unified Diff: src/pkg/go/printer/printer.go

Issue 12485044: code review 12485044: undo CL 12486043 / ab644299d124 (Closed)
Patch Set: diff -r ab644299d124 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/go/build/build.go ('k') | src/pkg/math/big/rat.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/go/printer/printer.go
===================================================================
--- a/src/pkg/go/printer/printer.go
+++ b/src/pkg/go/printer/printer.go
@@ -474,7 +474,7 @@
* Check for vertical "line of stars" and correct prefix accordingly.
*/
lineOfStars := false
- if i := strings.IndexByte(prefix, '*'); i >= 0 {
+ if i := strings.Index(prefix, "*"); i >= 0 {
// Line of stars present.
if i > 0 && prefix[i-1] == ' ' {
i-- // remove trailing blank from prefix so stars remain aligned
« no previous file with comments | « src/pkg/go/build/build.go ('k') | src/pkg/math/big/rat.go » ('j') | no next file with comments »

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