Skip to content

tutorial: clearer explanation of freezing. #12547

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

Merged
merged 1 commit into from Feb 26, 2014
Merged

tutorial: clearer explanation of freezing. #12547

merged 1 commit into from Feb 26, 2014

Conversation

ghost
Copy link

@ghost ghost commented Feb 25, 2014

  • "Lending an immutable pointer" might be confusing. It was not discussed why borrowed pointers are immutable in the first place.
  • Make it clear that the borrowed pointers are immutable even if the variable was declared with mut.
  • Make it clear that we cannot even assign anything to the variable while its value is being borrowed.

tutorial: change "--" to an em-dash.

tutorial: change instances of "--" to em-dash.

- "Lending an immutable pointer" might be confusing. It was not discussed why borrowed pointers are immutable in the first place.
- Make it clear that the borrowed pointers are immutable even if the variable was declared with `mut`.
- Make it clear that we cannot even assign anything to the variable while its value is being borrowed.

tutorial: change "--" to an em-dash.

tutorial: change instances of "--" to em-dash.
@ghost
Copy link
Author

ghost commented Feb 25, 2014

CC @pnkfelix I merged the three commits.

@ghost
Copy link
Author

ghost commented Feb 25, 2014

@pnkfelix Thanks!

bors added a commit that referenced this pull request Feb 26, 2014
…kfelix

- "Lending an immutable pointer" might be confusing. It was not discussed why borrowed pointers are immutable in the first place.
- Make it clear that the borrowed pointers are immutable even if the variable was declared with `mut`.
- Make it clear that we cannot even assign anything to the variable while its value is being borrowed.

tutorial: change "--" to an em-dash.

tutorial: change instances of "--" to em-dash.
@bors bors closed this Feb 26, 2014
@bors bors merged commit 82747ed into rust-lang:master Feb 26, 2014
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.

1 participant