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

Unified Diff: src/pkg/log/log.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/pkg/json/parse.go ('k') | src/pkg/math/atan.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/log/log.go
===================================================================
--- a/src/pkg/log/log.go
+++ b/src/pkg/log/log.go
@@ -78,7 +78,7 @@
b[bp] = byte(u%10) + '0';
}
- return string(b[bp:len(b)]);
+ return string(b[bp:]);
}
func (l *Logger) formatHeader(ns int64, calldepth int) string {
@@ -105,7 +105,7 @@
short = file;
for i := len(file) - 1; i > 0; i-- {
if file[i] == '/' {
- short = file[i+1 : len(file)];
+ short = file[i+1:];
break;
}
}
« no previous file with comments | « src/pkg/json/parse.go ('k') | src/pkg/math/atan.go » ('j') | no next file with comments »

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