From 127202d591e862f77b5c0dfead0bacf97ec42c9e Mon Sep 17 00:00:00 2001 From: Jason Lin Date: Tue, 20 Aug 2024 18:08:32 +1000 Subject: [PATCH] Update trait-bounds.md (#2295) We are going to talk about `impl Trait` in the very next slide. Let's don't duplicate it here and complicate the flow? --- src/generics/trait-bounds.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generics/trait-bounds.md b/src/generics/trait-bounds.md index 75581414..0dd5e295 100644 --- a/src/generics/trait-bounds.md +++ b/src/generics/trait-bounds.md @@ -7,7 +7,7 @@ minutes: 8 When working with generics, you often want to require the types to implement some trait, so that you can call this trait's methods. -You can do this with `T: Trait` or `impl Trait`: +You can do this with `T: Trait`: ```rust,editable fn duplicate(a: T) -> (T, T) {