1
0
mirror of https://github.com/golang/go synced 2024-11-21 13:24:40 -07:00

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

R=rsc
CC=golang-dev
https://golang.org/cl/224063
This commit is contained in:
Robert Griesemer 2010-02-25 15:54:12 -08:00
parent 3910161307
commit dfaa6eaa76

View File

@ -243,7 +243,7 @@ func (b *Writer) writeN(src []byte, n int) os.Error {
var (
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 {
}
var hbar = []byte{'-', '-', '-', '\n'}
var hbar = []byte("---\n")
// Write writes buf to the writer b.
// The only errors returned are ones encountered