]> Cypherpunks repositories - gostls13.git/commitdiff
spec: update language on type switches to match implementations
authorRobert Griesemer <gri@golang.org>
Thu, 18 Aug 2016 20:14:30 +0000 (13:14 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 1 Sep 2016 04:37:16 +0000 (04:37 +0000)
See the issue below for details.

Fixes #16794.

Change-Id: I7e338089fd80ddcb634fa80bfc658dee2772361c
Reviewed-on: https://go-review.googlesource.com/27356
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go_spec.html

index 77ece54d521b6820bf78588cbc6ce075c08660df..1d0ea22c7cf22dab6633889600b65d8b059b31ec 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of August 26, 2016",
+       "Subtitle": "Version of September 1, 2016",
        "Path": "/ref/spec"
 }-->
 
@@ -4690,8 +4690,8 @@ TypeList        = Type { "," Type } .
 <p>
 The TypeSwitchGuard may include a
 <a href="#Short_variable_declarations">short variable declaration</a>.
-When that form is used, the variable is declared at the beginning of
-the <a href="#Blocks">implicit block</a> in each clause.
+When that form is used, the variable is declared at the end of the
+TypeSwitchCase in the <a href="#Blocks">implicit block</a> of each clause.
 In clauses with a case listing exactly one type, the variable
 has that type; otherwise, the variable has the type of the expression
 in the TypeSwitchGuard.