diff --git a/doc/go_spec.html b/doc/go_spec.html index 7b4bde0fe01..2cf53c8a979 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -2652,7 +2652,7 @@ using type parameters in a type parameter list.
-A type constraint is an interface that defines the +A type constraint is an interface that defines the set of permissible type arguments for the respective type parameter and controls the operations supported by values of that type parameter.
@@ -2663,7 +2663,7 @@ TypeConstraint = TypeElem .
If the constraint is an interface literal of the form interface{E}
where
-E
is an embedded type element (not a method), in a type parameter list
+E
is an embedded type element (not a method), in a type parameter list
the enclosing interface{ … }
may be omitted for convenience:
interface{ … }
may be omitted for convenience:
[T []P] // = [T interface{[]P}]
[T ~int] // = [T interface{~int}]
[T int|string] // = [T interface{int|string}]
-type Constraint ~int // illegal: ~int is not inside a type parameter list
+type Constraint ~int // illegal: ~int is not in a type parameter list