Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the example code for
Clone
(#2001)
The previous example code for the `Clone` slide was a bit too complex in a way that obscured the fundamental point. I've replaced it with the `say_hello` example from the previous slide, but updated to demonstrate how cloning can address the borrow checker error. I also added a speaker note to mention that `Clone` performs a deep copy, which might be different from what students are used to if they come from a language like Python that does shallow copies by default.
- Loading branch information