mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
da3fb90b23
commit
32ee3f3f73
1 changed files with 1 additions and 1 deletions
|
|
@ -1108,7 +1108,7 @@ func gorecover() any {
|
|||
// frame between gopanic and gorecover.
|
||||
//
|
||||
// We don't recover this:
|
||||
// defer func() { func() { recover() }() }
|
||||
// defer func() { func() { recover() }() }()
|
||||
// because there are 2 non-wrapper frames.
|
||||
//
|
||||
// We don't recover this:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue