diff --git a/doc/go1.22.html b/doc/go1.22.html index 28dd5baeed..7e52249a14 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -717,9 +717,10 @@ defer func() {
The new function TypeFor
returns the Type that represents
- the type argument T. Previously, to get the element type, one had to use
- reflect.TypeOf((*T)(nil)).Elem(), this can now be written quite
- nicely with reflect.TypeFor[T]().
+ the type argument T.
+ Previously, to get the reflect.Type value for a type, one had to use
+ reflect.TypeOf((*T)(nil)).Elem().
+ This may now be written as reflect.TypeFor[T]().