diff --git a/doc/go_spec.html b/doc/go_spec.html index 5aed74e00ae..ed740187b91 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -3611,7 +3611,7 @@ in the type assertion.
 TypeSwitchStmt  = "switch" [ SimpleStmt ";" ] TypeSwitchGuard "{" { TypeCaseClause } "}" .
-TypeSwitchGuard = [ identifier ":=" ] Expression "." "(" "type" ")" .
+TypeSwitchGuard = [ identifier ":=" ] PrimaryExpr "." "(" "type" ")" .
 TypeCaseClause  = TypeSwitchCase ":" { Statement ";" } .
 TypeSwitchCase  = "case" TypeList | "default" .
 TypeList        = Type { "," Type } .