Skip to content

Commit 2e1f071

Browse files
committed
runtime: tweak doc for Goexit
Use singular form of panic and remove the unnecessary 'however', when comparing Goexit's behavior to 'a panic' as well as what happens for deferred recovers with Goexit. Change-Id: I3116df3336fa135198f6a39cf93dbb88a0e2f46e Reviewed-on: https://go-review.googlesource.com/79755 Reviewed-by: Rob Pike <[email protected]>
1 parent c866110 commit 2e1f071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/panic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ func deferreturn(arg0 uintptr) {
347347

348348
// Goexit terminates the goroutine that calls it. No other goroutine is affected.
349349
// Goexit runs all deferred calls before terminating the goroutine. Because Goexit
350-
// is not panic, however, any recover calls in those deferred functions will return nil.
350+
// is not a panic, any recover calls in those deferred functions will return nil.
351351
//
352352
// Calling Goexit from the main goroutine terminates that goroutine
353353
// without func main returning. Since func main has not returned,

0 commit comments

Comments
 (0)