Update lectures/08-generics/lecture.slide

This commit is contained in:
Fedor Korotkiy 2022-04-07 16:27:11 +00:00
parent e6a1932822
commit ffbc187ac7

View file

@ -332,11 +332,11 @@ Why don't we need explicit type parameters?
*T
}
func f[T any, PT Pointer[T]](x T)
func f[T any, PT Pointer[T]](p PT)
or with inlined constraint
func foo[T any, PT interface{*T}](x T)
func foo[T any, PT interface{*T}](p PT)
* When to use generics