diff options
| author | Rob Pike <r@golang.org> | 2009-03-10 20:47:42 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2009-03-10 20:47:42 -0700 |
| commit | 5559ff6ece381c8ee1b27779708bc821f609eafb (patch) | |
| tree | cdfc58a9046105ddf63f81918a2adb6c88e01bcf /src/lib/fmt/format.go | |
| parent | 062d6998abfa3fd59d47ed86547783db25ab066b (diff) | |
| download | go-5559ff6ece381c8ee1b27779708bc821f609eafb.tar.xz | |
fix old-style print call in constant
R=rsc
OCL=26093
CL=26093
Diffstat (limited to 'src/lib/fmt/format.go')
| -rw-r--r-- | src/lib/fmt/format.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |
