]> Cypherpunks.ru repositories - gostls13.git/commitdiff
fmt: clarify that we don't call String for %#v
authorIan Lance Taylor <iant@golang.org>
Wed, 20 Sep 2023 22:15:45 +0000 (15:15 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 25 Sep 2023 14:28:27 +0000 (14:28 +0000)
Change-Id: I4edf8bd6f9ab813acf1d05c603f6f562fa00cb48
Reviewed-on: https://go-review.googlesource.com/c/go/+/529975
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/fmt/doc.go

index 9785ed95269539584d8e7fdfdcbf23d0e137c546..1cda484d8ab274b0738763364854b0d9a0009a6a 100644 (file)
@@ -180,7 +180,8 @@ controlled by that implementation.
 implements the GoStringer interface, that will be invoked.
 
 If the format (which is implicitly %v for Println etc.) is valid
-for a string (%s %q %v %x %X), the following two rules apply:
+for a string (%s %q %x %X), or is %v but not %#v,
+the following two rules apply:
 
 4. If an operand implements the error interface, the Error method
 will be invoked to convert the object to a string, which will then