]> Cypherpunks repositories - gostls13.git/commitdiff
spec: provide some (minimal) intuition for the notion of "terminating statement"
authorRobert Griesemer <gri@golang.org>
Thu, 21 Dec 2017 23:17:35 +0000 (15:17 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 22 Dec 2017 21:13:38 +0000 (21:13 +0000)
Fixes #23215.

Change-Id: Ib20825bf08915b4daaabbfd91f168e24973c512d
Reviewed-on: https://go-review.googlesource.com/85215
Reviewed-by: Rob Pike <r@golang.org>
doc/go_spec.html

index ebf1cefffeaefbeb4ac24ee34716d14a4206e14d..9232eb0f8a80fb9658f7434fc393a6e9a5ece33b 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of October 25, 2017",
+       "Subtitle": "Version of December 21, 2017",
        "Path": "/ref/spec"
 }-->
 
@@ -4356,7 +4356,9 @@ SimpleStmt = EmptyStmt | ExpressionStmt | SendStmt | IncDecStmt | Assignment | S
 <h3 id="Terminating_statements">Terminating statements</h3>
 
 <p>
-A terminating statement is one of the following:
+A <i>terminating statement</i> prevents execution of all statements that lexically
+appear after it in the same <a href="#Blocks">block</a>. The following statements
+are terminating:
 </p>
 
 <ol>