]> Cypherpunks repositories - gostls13.git/commitdiff
fmt: document %%
authorRob Pike <r@golang.org>
Thu, 3 Feb 2011 19:55:33 +0000 (11:55 -0800)
committerRob Pike <r@golang.org>
Thu, 3 Feb 2011 19:55:33 +0000 (11:55 -0800)
R=rsc, gri
CC=golang-dev
https://golang.org/cl/4130044

src/pkg/fmt/doc.go

index 03800aa47a8a20d7bd1807eea38c9bf9a6ebc520..b717b7f2793cfd7ff149da2eb19e17604088dc8f 100644 (file)
@@ -16,6 +16,7 @@
                        when printing structs, the plus flag (%+v) adds field names
                %#v     a Go-syntax representation of the value
                %T      a Go-syntax representation of the type of the value
+               %%      a literal percent sign; consumes no value
 
        Boolean:
                %t      the word true or false