From e6a19328222bd8a3e4d1f499453aabfc5317be72 Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Thu, 7 Apr 2022 16:25:34 +0000 Subject: [PATCH] Update lectures/08-generics/lecture.slide --- lectures/08-generics/lecture.slide | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lectures/08-generics/lecture.slide b/lectures/08-generics/lecture.slide index 5e04dce..7fb9503 100644 --- a/lectures/08-generics/lecture.slide +++ b/lectures/08-generics/lecture.slide @@ -329,14 +329,14 @@ Why don't we need explicit type parameters? * Relationships between type parameters type Pointer[T any] interface { - type *T + *T } func f[T any, PT Pointer[T]](x T) or with inlined constraint - func foo[T any, PT interface{type *T}](x T) + func foo[T any, PT interface{*T}](x T) * When to use generics