summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-04-21 15:30:17 -0700
committerRobert Griesemer <gri@golang.org>2009-04-21 15:30:17 -0700
commit0c344c53856d9b6c3bc0c692fee8ba0b3510336f (patch)
treed01afdd98497e663cd4e4a7d076cc01adcdfa5d4
parent439e199665932c43b9bd8533aed40ecd84686778 (diff)
downloadgolang-0c344c53856d9b6c3bc0c692fee8ba0b3510336f.tar.gz
minor adjustment to comment formatting for better godoc output
R=r DELTA=5 (0 added, 0 deleted, 5 changed) OCL=27687 CL=27689
-rw-r--r--src/lib/fmt/format.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/fmt/format.go b/src/lib/fmt/format.go
index ce5050371..1c78d80c5 100644
--- a/src/lib/fmt/format.go
+++ b/src/lib/fmt/format.go
@@ -29,14 +29,14 @@ func init() {
Fmt is the raw formatter used by Printf etc. Not meant for normal use.
See print.go for a more palatable interface.
- Model is to accumulate operands into an internal buffer and then
+ The model is to accumulate operands into an internal buffer and then
retrieve the buffer in one hit using Str(), Putnl(), etc. The formatting
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
- f.Fmt_d(-1234).Fmt_s("\n").Put(); // print string
- f.Fmt_ud(1<<63).Putnl(); // print string with automatic newline
+ f := fmt.New();
+ 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
*/
type Fmt struct {
buf string;