ferrous-systems / rust-training

Learning materials for the Rust Training courses by Ferrous Systems
144 stars 19 forks source link

Change ownership.md to talk about String instead of File #71

Closed jonathanpallant closed 1 year ago

jonathanpallant commented 1 year ago

Files are complicated, and I think the io::Result and so on gets in the way of the point about transferring ownership.

Strings also are complicated (a &String turns into a &str very easily), but that's easier to explain and actually relevant to the point at hand.

Closes: #70