From f8555ea6fdbbfc32e26f351ac16138fad31a2d62 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 18 Aug 2016 13:14:30 -0700 Subject: [PATCH] spec: update language on type switches to match implementations See the issue below for details. Fixes #16794. Change-Id: I7e338089fd80ddcb634fa80bfc658dee2772361c Reviewed-on: https://go-review.googlesource.com/27356 Reviewed-by: Ian Lance Taylor --- doc/go_spec.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 77ece54d52..1d0ea22c7c 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -4690,8 +4690,8 @@ TypeList = Type { "," Type } .

The TypeSwitchGuard may include a short variable declaration. -When that form is used, the variable is declared at the beginning of -the implicit block in each clause. +When that form is used, the variable is declared at the end of the +TypeSwitchCase in the implicit block 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. -- 2.48.1