]> Cypherpunks repositories - gostls13.git/commitdiff
fmt: fix two typos
authorShenghou Ma <minux@golang.org>
Sun, 4 Jan 2015 22:58:13 +0000 (17:58 -0500)
committerMinux Ma <minux@golang.org>
Sun, 4 Jan 2015 23:07:43 +0000 (23:07 +0000)
Change-Id: I7b65cf3b67bef8950115066d6d12b25cd0a5edfc
Reviewed-on: https://go-review.googlesource.com/2272
Reviewed-by: Rob Pike <r@golang.org>
src/fmt/doc.go

index ee54463e275bd43d6f7542e8455b6f5eed29f2c4..bb832ea645afcaf23de6fa1be1c35ea27a9019fa 100644 (file)
                maps:               map[key1:value1 key2:value2]
                pointer to above:   &{}, &[], &map[]
 
-       Width is specified by an optional decimal number immediately following the verb.
+       Width is specified by an optional decimal number immediately preceding the verb.
        If absent, the width is whatever is necessary to represent the value.
        Precision is specified after the (optional) width by a period followed by a
        decimal number. If no period is present, a default precision is used.
        A period with no following number specifies a precision of zero.
        Examples:
-               %f:    default width, default precision
+               %f     default width, default precision
                %9f    width 9, default precision
                %.2f   default width, precision 2
                %9.2f  width 9, precision 2