diff --git a/doc/go_spec.html b/doc/go_spec.html index 0fc5b4590f9..b8e6aceee9c 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -3884,8 +3884,9 @@ If the indices are out of range at run time, a run-ti

Type assertions

-For an expression x of interface type -and a type T, the primary expression +For an expression x of interface type, +but not a type parameter, and a type T, +the primary expression

@@ -5677,7 +5678,8 @@ switch x.(type) {
 

Cases then match actual types T against the dynamic type of the expression x. As with type assertions, x must be of -interface type, and each non-interface type +interface type, but not a +type parameter, and each non-interface type T listed in a case must implement the type of x. The types listed in the cases of a type switch must all be different.