mirror of https://github.com/golang/go.git
spec: avoid use of "raise" in conjunction with panics
For #73526 Change-Id: I06d8ae9080695745db68a51635faa0b244c1760e Reviewed-on: https://go-review.googlesource.com/c/go/+/670155 Reviewed-by: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Mark Freeman <mark@golang.org> Auto-Submit: Mark Freeman <mark@golang.org>
This commit is contained in:
parent
d365f2266d
commit
66ea0ee409
|
|
@ -7894,7 +7894,7 @@ causes a <a href="#Run_time_panics">run-time panic</a>.
|
|||
<p>
|
||||
The <code>protect</code> function in the example below invokes
|
||||
the function argument <code>g</code> and protects callers from
|
||||
run-time panics raised by <code>g</code>.
|
||||
run-time panics caused by <code>g</code>.
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
|
|
|
|||
Loading…
Reference in New Issue