]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: tweak doc for Goexit
authorEmmanuel Odeke <emm.odeke@gmail.com>
Thu, 23 Nov 2017 22:31:28 +0000 (15:31 -0700)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Fri, 24 Nov 2017 01:13:53 +0000 (01:13 +0000)
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 <r@golang.org>
src/runtime/panic.go

index 11cb05e97698a1abff5ef240704d1429fb809aa9..6fa99d6493480a726aec14d98ad8eb0a73d769fa 100644 (file)
@@ -347,7 +347,7 @@ func deferreturn(arg0 uintptr) {
 
 // Goexit terminates the goroutine that calls it. No other goroutine is affected.
 // Goexit runs all deferred calls before terminating the goroutine. Because Goexit
-// is not panic, however, any recover calls in those deferred functions will return nil.
+// is not a panic, any recover calls in those deferred functions will return nil.
 //
 // Calling Goexit from the main goroutine terminates that goroutine
 // without func main returning. Since func main has not returned,