diff options
| author | Rob Phoenix <rob@robphoenix.com> | 2017-06-07 20:19:15 +0100 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2017-06-07 21:00:42 +0000 |
| commit | b7c51c5fefcbe6e8d21ce0c5e058b1f9cf7ea6ab (patch) | |
| tree | 2e3f40d2d463c126a7322f80987d9a367d588c8e /src | |
| parent | 7be15861f91e53b275b89faee16a315f0a88555d (diff) | |
| download | go-b7c51c5fefcbe6e8d21ce0c5e058b1f9cf7ea6ab.tar.xz | |
fmt: remove unnecessary trailing commas in doc.go
Change-Id: Ib5efe172c55ff624b6771c2f02c466e35ba6cc50
Reviewed-on: https://go-review.googlesource.com/45090
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/fmt/doc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fmt/doc.go b/src/fmt/doc.go index 4b668f38db..014ba06948 100644 --- a/src/fmt/doc.go +++ b/src/fmt/doc.go @@ -192,9 +192,9 @@ For example, fmt.Sprintf("%[2]d %[1]d\n", 11, 22) will yield "22 11", while - fmt.Sprintf("%[3]*.[2]*[1]f", 12.0, 2, 6), + fmt.Sprintf("%[3]*.[2]*[1]f", 12.0, 2, 6) equivalent to - fmt.Sprintf("%6.2f", 12.0), + fmt.Sprintf("%6.2f", 12.0) will yield " 12.00". Because an explicit index affects subsequent verbs, this notation can be used to print the same values multiple times by resetting the index for the first argument to be repeated: |
