]> Cypherpunks repositories - gostls13.git/commitdiff
spec: avoid use of "raise" in conjunction with panics
authorMark Freeman <mark@golang.org>
Mon, 5 May 2025 20:39:11 +0000 (16:39 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 6 May 2025 19:12:15 +0000 (12:12 -0700)
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>

doc/go_spec.html

index 479605e36c1bdb065a24b3ea0b25ca372f3ed970..183bc7fb3727554f8e3ca59f164492728c2d8787 100644 (file)
@@ -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>