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

Unified Diff: src/pkg/syslog/syslog_test.go

Issue 1326042: code review 1326042: changes &x -> x[0:] for array to slice conversion (Closed)
Patch Set: code review 1326042: changes &x -> x[0:] for array to slice conversion Created 14 years, 10 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/syscall/syscall_linux.go ('k') | src/pkg/tabwriter/tabwriter.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/syslog/syslog_test.go
===================================================================
--- a/src/pkg/syslog/syslog_test.go
+++ b/src/pkg/syslog/syslog_test.go
@@ -16,7 +16,7 @@
var buf [4096]byte
var rcvd string = ""
for {
- n, _, err := c.ReadFrom(&buf)
+ n, _, err := c.ReadFrom(buf[0:])
if err != nil || n == 0 {
break
}
« no previous file with comments | « src/pkg/syscall/syscall_linux.go ('k') | src/pkg/tabwriter/tabwriter.go » ('j') | no next file with comments »

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