]> Cypherpunks repositories - gostls13.git/commitdiff
spec: clarify when a program exits
authorRobert Griesemer <gri@golang.org>
Mon, 19 May 2014 15:54:19 +0000 (08:54 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 19 May 2014 15:54:19 +0000 (08:54 -0700)
Fixes #8023.

LGTM=rsc
R=r, iant, ken, rsc
CC=golang-codereviews
https://golang.org/cl/98340043

doc/go_spec.html

index c8d6f362e572e5c462cd404cabc8bcd30ca9cc3f..536d370640278d215fe6389eedaf3cd39d2610bd 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of May 14, 2014",
+       "Subtitle": "Version of May 19, 2014",
        "Path": "/ref/spec"
 }-->
 
@@ -5979,7 +5979,7 @@ func main() { … }
 <p>
 Program execution begins by initializing the main package and then
 invoking the function <code>main</code>.
-When the function <code>main</code> returns, the program exits.
+When that function invocation returns, the program exits.
 It does not wait for other (non-<code>main</code>) goroutines to complete.
 </p>