mirror of
https://github.com/golang/go
synced 2024-10-02 22:25:08 +00:00
fmt: clarify that we don't call String for %#v
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>
This commit is contained in:
parent
451e4727ec
commit
51d2e9cbfa
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue