Commit 9a5789d4 authored by Shenghou Ma's avatar Shenghou Ma Committed by Minux Ma

fmt: fix two typos

Change-Id: I7b65cf3b67bef8950115066d6d12b25cd0a5edfc
Reviewed-on: https://go-review.googlesource.com/2272Reviewed-by: default avatarRob Pike <r@golang.org>
parent 19f2bd8c
...@@ -66,13 +66,13 @@ ...@@ -66,13 +66,13 @@
maps: map[key1:value1 key2:value2] maps: map[key1:value1 key2:value2]
pointer to above: &{}, &[], &map[] 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. 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 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. decimal number. If no period is present, a default precision is used.
A period with no following number specifies a precision of zero. A period with no following number specifies a precision of zero.
Examples: Examples:
%f: default width, default precision %f default width, default precision
%9f width 9, default precision %9f width 9, default precision
%.2f default width, precision 2 %.2f default width, precision 2
%9.2f width 9, precision 2 %9.2f width 9, precision 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment