From dfaa6eaa76bb1d440a2e7f93fa2ee6da622f9d0d Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 25 Feb 2010 15:54:12 -0800 Subject: [PATCH] tabwriter: make use of new []byte() conversion R=rsc CC=golang-dev https://golang.org/cl/224063 --- src/pkg/tabwriter/tabwriter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/tabwriter/tabwriter.go b/src/pkg/tabwriter/tabwriter.go index d341e21aac..bca3228e2c 100644 --- a/src/pkg/tabwriter/tabwriter.go +++ b/src/pkg/tabwriter/tabwriter.go @@ -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