From: Sean Liao Date: Wed, 13 Nov 2024 15:04:37 +0000 (+0000) Subject: fmt: document nil receiver handling for GoStringer X-Git-Tag: go1.24rc1~364 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=eea5e13de4b57e7307a20192c8a27565f136484f;p=gostls13.git fmt: document nil receiver handling for GoStringer Fixes #70305 Change-Id: I8ae4e6dae3327a54039d470c8c8545e2cc6de98f Reviewed-on: https://go-review.googlesource.com/c/go/+/627495 Reviewed-by: Rob Pike Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov --- diff --git a/src/fmt/doc.go b/src/fmt/doc.go index d8ff646543..b90db7bedc 100644 --- a/src/fmt/doc.go +++ b/src/fmt/doc.go @@ -280,8 +280,8 @@ like %!s(PANIC=bad) The %!s just shows the print verb in use when the failure -occurred. If the panic is caused by a nil receiver to an Error -or String method, however, the output is the undecorated +occurred. If the panic is caused by a nil receiver to an Error, +String, or GoString method, however, the output is the undecorated string, "". # Scanning