Skip to content

Commit

Permalink
Update associated-generics.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DrW3RK authored Sep 14, 2023
1 parent 3dd821a commit 16e2485
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Rust/section6/associated-generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ description: Learn the difference between associated types vs generic types.

Associated types are an abstract way to define a name for what a type should be.

<iframe width="560" height="315" src="https://www.youtube.com/embed/YCoFRJopcck?si=m4UIiK6vNKqcnNkd" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

In the [Generics](./generics.md) section, we encountered an associated type when we defined the
`Mul` trait as a bound:

Expand Down

0 comments on commit 16e2485

Please sign in to comment.