1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-20 06:21:09 +02:00

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?
This commit is contained in:
Jason Lin 2024-08-20 18:08:32 +10:00 committed by GitHub
parent 56ae649097
commit 127202d591
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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<T: Clone>(a: T) -> (T, T) {