Commit dfaa6eaa authored by Robert Griesemer's avatar Robert Griesemer

tabwriter: make use of new []byte() conversion

R=rsc
CC=golang-dev
https://golang.org/cl/224063
parent 39101613
...@@ -243,7 +243,7 @@ func (b *Writer) writeN(src []byte, n int) os.Error { ...@@ -243,7 +243,7 @@ func (b *Writer) writeN(src []byte, n int) os.Error {
var ( var (
newline = []byte{'\n'} newline = []byte{'\n'}
tabs = []byte{'\t', '\t', '\t', '\t', '\t', '\t', '\t', '\t'} tabs = []byte("\t\t\t\t\t\t\t\t")
) )
...@@ -497,7 +497,7 @@ func (b *Writer) Flush() os.Error { ...@@ -497,7 +497,7 @@ func (b *Writer) Flush() os.Error {
} }
var hbar = []byte{'-', '-', '-', '\n'} var hbar = []byte("---\n")
// Write writes buf to the writer b. // Write writes buf to the writer b.
// The only errors returned are ones encountered // The only errors returned are ones encountered
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment