commit | 53385442a5c40900f048658548f0d91e6a881afd | [log] [tgz] |
---|---|---|
author | Rob Pike <r@golang.org> | Wed Jun 30 22:22:43 2010 -0700 |
committer | Rob Pike <r@golang.org> | Wed Jun 30 22:22:43 2010 -0700 |
tree | e9369d394927246610c9f8c255184e8aab1e1022 | |
parent | 5256cf6e46d8bfa5850f942898e12c2a3bd96e1b [diff] [blame] |
update calls to Split for API change: 0 no longer means unbounded R=rsc http://codereview.appspot.com/1748044
diff --git a/proto/text.go b/proto/text.go index f715589..4d5446a 100644 --- a/proto/text.go +++ b/proto/text.go
@@ -56,7 +56,7 @@ func (w *textWriter) Write(p []byte) (n int, err os.Error) { n, err = len(p), nil - frags := strings.Split(string(p), "\n", 0) + frags := strings.Split(string(p), "\n", -1) if w.compact { w.writer.Write([]byte(strings.Join(frags, " "))) return