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:
Mark Freeman 2025-05-05 16:39:11 -04:00 committed by Gopher Robot
parent d365f2266d
commit 66ea0ee409
1 changed files with 1 additions and 1 deletions

View File

@ -7894,7 +7894,7 @@ causes a <a href="#Run_time_panics">run-time panic</a>.
<p> <p>
The <code>protect</code> function in the example below invokes The <code>protect</code> function in the example below invokes
the function argument <code>g</code> and protects callers from 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> </p>
<pre> <pre>