From f3f507b2d86bfb38c7e466a465d5b6463cfd4184 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 21 Dec 2017 15:17:35 -0800 Subject: [PATCH] spec: provide some (minimal) intuition for the notion of "terminating statement" Fixes #23215. Change-Id: Ib20825bf08915b4daaabbfd91f168e24973c512d Reviewed-on: https://go-review.googlesource.com/85215 Reviewed-by: Rob Pike --- doc/go_spec.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index ebf1cefffe..9232eb0f8a 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -4356,7 +4356,9 @@ SimpleStmt = EmptyStmt | ExpressionStmt | SendStmt | IncDecStmt | Assignment | S

Terminating statements

-A terminating statement is one of the following: +A terminating statement prevents execution of all statements that lexically +appear after it in the same block. The following statements +are terminating:

    -- 2.50.0