]> Cypherpunks repositories - gostls13.git/commitdiff
fix old-style print call in constant
authorRob Pike <r@golang.org>
Wed, 11 Mar 2009 03:47:42 +0000 (20:47 -0700)
committerRob Pike <r@golang.org>
Wed, 11 Mar 2009 03:47:42 +0000 (20:47 -0700)
R=rsc
OCL=26093
CL=26093

src/lib/fmt/format.go

index d422a809f8e6151bda412d7c898dadd6baa51eb0..14c5043ac7af8f006d44c5a2d8ef7c333a8a7d2d 100644 (file)
@@ -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
 */