aboutsummaryrefslogtreecommitdiff
path: root/src/lib/tabwriter
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-04-15 20:27:45 -0700
committerRuss Cox <rsc@golang.org>2009-04-15 20:27:45 -0700
commit60ce95d7a1677d98ca098a3657e00d71b6021a30 (patch)
tree16cfcc3cc7d82aa01da1b152e520297da5afc88a /src/lib/tabwriter
parent65d397f747f565cbea57dd40f4f838bbab803243 (diff)
downloadgo-60ce95d7a1677d98ca098a3657e00d71b6021a30.tar.xz
code changes for array conversion.
as a reminder, the old conversion was that you could write var arr [10]byte; var slice []byte; slice = arr; but now you have to write slice = &arr; the change eliminates an implicit &, so that the only implicit &s left are in the . operator and in string(arr). also, removed utf8.EncodeRuneToString in favor of string(rune). R=r DELTA=83 (1 added, 23 deleted, 59 changed) OCL=27531 CL=27534
Diffstat (limited to 'src/lib/tabwriter')
-rw-r--r--src/lib/tabwriter/tabwriter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/tabwriter/tabwriter.go b/src/lib/tabwriter/tabwriter.go
index 26679740bb..fa0437d089 100644
--- a/src/lib/tabwriter/tabwriter.go
+++ b/src/lib/tabwriter/tabwriter.go
@@ -249,7 +249,7 @@ func (b *Writer) writePadding(textw, cellw int) (err *os.Error) {
}
for n > len(b.padbytes) {
- err = b.write0(b.padbytes);
+ err = b.write0(&b.padbytes);
if err != nil {
goto exit;
}