Skip to content
Discussion options

You must be logged in to vote

This exercise demonstrates that you can declare something as mutable when you own it, even if it was immutable.

move_semantics3 recommends exactly what you did by adding mut to the parameter. This is the idiomatic way.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kaiskii
Comment options

Answer selected by mo8it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2161 on November 19, 2024 13:07.