]> Cypherpunks repositories - gostls13.git/commitdiff
fmt: remove unnecessary trailing commas in doc.go
authorRob Phoenix <rob@robphoenix.com>
Wed, 7 Jun 2017 19:19:15 +0000 (20:19 +0100)
committerRob Pike <r@golang.org>
Wed, 7 Jun 2017 21:00:42 +0000 (21:00 +0000)
Change-Id: Ib5efe172c55ff624b6771c2f02c466e35ba6cc50
Reviewed-on: https://go-review.googlesource.com/45090
Reviewed-by: Rob Pike <r@golang.org>
src/fmt/doc.go

index 4b668f38db71406f8871a1ee699b9e8d04f7a469..014ba06948d42880b2add0ea85826b17fba0968d 100644 (file)
        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: