From: Rob Phoenix Date: Wed, 7 Jun 2017 19:19:15 +0000 (+0100) Subject: fmt: remove unnecessary trailing commas in doc.go X-Git-Tag: go1.9beta1~88 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b7c51c5fefcbe6e8d21ce0c5e058b1f9cf7ea6ab;p=gostls13.git fmt: remove unnecessary trailing commas in doc.go Change-Id: Ib5efe172c55ff624b6771c2f02c466e35ba6cc50 Reviewed-on: https://go-review.googlesource.com/45090 Reviewed-by: Rob Pike --- 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: