From 7f1d62dcefc868361e15db12608a8c8261be0e10 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 19 May 2014 08:54:19 -0700 Subject: [PATCH] spec: clarify when a program exits Fixes #8023. LGTM=rsc R=r, iant, ken, rsc CC=golang-codereviews https://golang.org/cl/98340043 --- doc/go_spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.

-- 2.50.0