commit | 5564504507c9b307840a5d13d9700d46e2a8524d | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Tue Jan 06 15:19:02 2009 -0800 |
committer | Russ Cox <rsc@golang.org> | Tue Jan 06 15:19:02 2009 -0800 |
tree | f3f98baba1fdd5e0138a4875884aa85111308b3f | |
parent | 9662e7b2db0fa8c2bb4d8cf28940116763eedbc9 [diff] [blame] |
new new & make R=r OCL=22166 CL=22166
diff --git a/src/lib/fmt/print.go b/src/lib/fmt/print.go index 6546e13..6f0b0cf 100644 --- a/src/lib/fmt/print.go +++ b/src/lib/fmt/print.go
@@ -46,7 +46,7 @@ } func Printer() *P { - p := new(*P); + p := new(P); p.fmt = fmt.New(); return p; } @@ -81,7 +81,7 @@ if newn < n { newn = n + AllocSize } - b := new([]byte, newn); + b := make([]byte, newn); for i := 0; i < p.n; i++ { b[i] = p.buf[i]; }