runtime: tweak example code for gorecover

Change-Id: Ie545610fab008f7855bcb1a608f98e0c5109ec20
GitHub-Last-Rev: 66401b913a
GitHub-Pull-Request: golang/go#76100
Reviewed-on: https://go-review.googlesource.com/c/go/+/716040
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
Jes Cok 2025-10-29 07:59:22 +00:00 committed by Gopher Robot
parent da3fb90b23
commit 32ee3f3f73

View file

@ -1108,7 +1108,7 @@ func gorecover() any {
// frame between gopanic and gorecover. // frame between gopanic and gorecover.
// //
// We don't recover this: // We don't recover this:
// defer func() { func() { recover() }() } // defer func() { func() { recover() }() }()
// because there are 2 non-wrapper frames. // because there are 2 non-wrapper frames.
// //
// We don't recover this: // We don't recover this: