Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ch04-02-references-and-borrowing.md #3802

Closed
wants to merge 1 commit into from

Conversation

mayur-padshala
Copy link

It is assumed that the change function will mutate the borrowed reference. It depends on the implementation of the function whether it will or will not mutate. It is more appropriate to use the word "can" instead of "will".

It is assumed that the change function will mutate the borrowed reference. It depends on the implementation of the function whether it will or will not mutate. It is more appropriate to use the word "can" instead of "will".
Copy link
Contributor

@chriskrycho chriskrycho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. In context, however, the point is that the function is mutating. Also, as a rule, Rust functions do not take parameters mutably unless they are going to mutate. I am closing this and leaving it as is accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants