diff --git a/doc/go_spec.html b/doc/go_spec.html index f82336a85b..489ad4db36 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,5 +1,5 @@ - + +
+ ++A "goto" statement outside a block cannot jump to a label inside that block. +For instance, this example: +
+ +
+if n%2 == 1 {
+ goto L1
+}
+for n > 0 {
+ f()
+ n--
+L1:
+ f()
+ n--
+}
+
+
+
+is erroneous because the label L1 is inside
+the "for" statement's block but the goto is not.
goto statements and targets (no intervening declarations) is not honored.len(a) is only a constant if a is a (qualified) identifier denoting an array or pointer to an array.nil maps are not treated like empty maps.nil channel causes a run-time panic.