diff --git a/doc/go_spec.html b/doc/go_spec.html index f82336a85bd..489ad4db365 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.

Fallthrough statements

@@ -5244,7 +5264,6 @@ The following minimal alignment properties are guaranteed:

Implementation differences - TODO