trifectatechfoundation / teach-rs

A modular, reusable university course for Rust
https://teach-rs.trifectatech.org
Creative Commons Attribution Share Alike 4.0 International
2.92k stars 137 forks source link

101-rs/slides /A3-traits-generics.md : ` impl std::ops::Add ` (2) : typo ? #79

Closed duron-rik closed 9 months ago

duron-rik commented 1 year ago

compilation of the example on the slide fails... line 6 : replacing "rhs : Self" with "rhs : u32" makes it work.

hdoordt commented 9 months ago

Thanks!