From 5559ff6ece381c8ee1b27779708bc821f609eafb Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Tue, 10 Mar 2009 20:47:42 -0700 Subject: [PATCH] fix old-style print call in constant R=rsc OCL=26093 CL=26093 --- src/lib/fmt/format.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/fmt/format.go b/src/lib/fmt/format.go index d422a809f8..14c5043ac7 100644 --- a/src/lib/fmt/format.go +++ b/src/lib/fmt/format.go @@ -34,7 +34,7 @@ func init() { methods return ``self'' so the operations can be chained. f := fmt.New(); - print f.Fmt_d(1234).Fmt_s("\n").Str(); // create string, print it + print(f.Fmt_d(1234).Fmt_s("\n").Str()); // create string, print it f.Fmt_d(-1234).Fmt_s("\n").Put(); // print string f.Fmt_ud(1<<63).Putnl(); // print string with automatic newline */ -- 2.48.1