]> Cypherpunks repositories - gostls13.git/commitdiff
fmt: document nil receiver handling for GoStringer
authorSean Liao <sean@liao.dev>
Wed, 13 Nov 2024 15:04:37 +0000 (15:04 +0000)
committerGopher Robot <gobot@golang.org>
Sat, 16 Nov 2024 08:20:53 +0000 (08:20 +0000)
Fixes #70305

Change-Id: I8ae4e6dae3327a54039d470c8c8545e2cc6de98f
Reviewed-on: https://go-review.googlesource.com/c/go/+/627495
Reviewed-by: Rob Pike <r@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/fmt/doc.go

index d8ff6465433a7ec782df289f010a549669e1ebe0..b90db7bedc684bb6b22f7088e528c465974c451d 100644 (file)
@@ -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, "<nil>".
 
 # Scanning