▲ 9 ▼ [Question][Textbook problems]Learning Rust Ownership and practice questions. (lemmy.world) submitted 2 years ago by InternetCitizen2@lemmy.world to c/rust@programming.dev 2 comments fedilink hide all child comments Hello All: I am working on rust problems here. In the second question I solved it by simply adding the return statement for the function to modify. I am not sure what the lesson in ownership to walk away with in this problem. Any guidance?
[–] InternetCitizen2@lemmy.world [S] 2 points 2 years ago Yeah thanks! permalink fedilink source parent