From: Russ Cox Date: Mon, 11 Feb 2013 12:46:39 +0000 (-0500) Subject: spec: reject top-level init names X-Git-Tag: go1.1rc2~1078 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0a22018d461d7999df3af40cefb6ace17dfe79c0;p=gostls13.git spec: reject top-level init names Fixes #4586. R=golang-dev, remyoudompheng, r CC=golang-dev https://golang.org/cl/7307082 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index f18585a2e9..aa4330d420 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -5472,8 +5472,10 @@ func init()

defined in its source. -A package may contain multiple -init functions, even +A package-scope or file-scope identifier +with name init may only be +declared to be a function with this signature. +Multiple such functions may be defined, even within a single source file; they execute in unspecified order.