From: Robert Griesemer Date: Mon, 19 May 2014 15:54:19 +0000 (-0700) Subject: spec: clarify when a program exits X-Git-Tag: go1.3beta2~28 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7f1d62dcefc868361e15db12608a8c8261be0e10;p=gostls13.git spec: clarify when a program exits Fixes #8023. LGTM=rsc R=r, iant, ken, rsc CC=golang-codereviews https://golang.org/cl/98340043 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index c8d6f362e5..536d370640 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -5979,7 +5979,7 @@ func main() { … }

Program execution begins by initializing the main package and then invoking the function main. -When the function main returns, the program exits. +When that function invocation returns, the program exits. It does not wait for other (non-main) goroutines to complete.