diff --git a/doc/go_spec.html b/doc/go_spec.html index 75dc2e4634..77ece54d52 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -2320,7 +2320,7 @@ days := [...]string{"Sat", "Sun"} // len(days) == 2

A slice literal describes the entire underlying array literal. -Thus, the length and capacity of a slice literal are the maximum +Thus the length and capacity of a slice literal are the maximum element index plus one. A slice literal has the form

@@ -6162,9 +6162,10 @@ func init() { … }

-Multiple such functions may be defined, even within a single -source file. The init identifier is not -declared and thus +Multiple such functions may be defined per package, even within a single +source file. In the package block, the init identifier can +be used only to declare init functions, yet the identifier +itself is not declared. Thus init functions cannot be referred to from anywhere in a program.