mirror of
https://github.com/golang/go
synced 2024-11-22 02:04: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:
parent
3910161307
commit
dfaa6eaa76
@ -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 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user