From: Rob Pike Date: Wed, 11 Mar 2009 03:47:42 +0000 (-0700) Subject: fix old-style print call in constant X-Git-Tag: weekly.2009-11-06~2048 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5559ff6ece381c8ee1b27779708bc821f609eafb;p=gostls13.git fix old-style print call in constant R=rsc OCL=26093 CL=26093 --- 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 */