diff --git a/examples/goroutines/goroutines.sh b/examples/goroutines/goroutines.sh index 1d42ee2..38506ed 100644 --- a/examples/goroutines/goroutines.sh +++ b/examples/goroutines/goroutines.sh @@ -1,7 +1,8 @@ # When we run this program, we see the output of the -# blocking call first, then the interleaved output of the -# two goroutines. This interleaving reflects the -# goroutines being run concurrently by the Go runtime. +# blocking call first, then the output of the two +# goroutines. The goroutines' output may be interleaved, +# because goroutines are being run concurrently by the +# Go runtime. $ go run goroutines.go direct : 0 direct : 1 diff --git a/public/goroutines b/public/goroutines index 808ca22..c6fbd87 100644 --- a/public/goroutines +++ b/public/goroutines @@ -157,9 +157,10 @@ separate goroutines now. Wait for them to finish

When we run this program, we see the output of the -blocking call first, then the interleaved output of the -two goroutines. This interleaving reflects the -goroutines being run concurrently by the Go runtime.

+blocking call first, then the output of the two +goroutines. The goroutines’ output may be interleaved, +because goroutines are being run concurrently by the +Go runtime.