]> git.lizzy.rs Git - rust.git/commit
auto merge of #12547 : jagtalon/rust/jag/rust/tutorial-freezing, r=pnkfelix
authorbors <bors@rust-lang.org>
Wed, 26 Feb 2014 07:31:35 +0000 (23:31 -0800)
committerbors <bors@rust-lang.org>
Wed, 26 Feb 2014 07:31:35 +0000 (23:31 -0800)
commit6c41f993d390a0a8d9f42cfca4f365b6f93d0c26
tree7c6f2b7f77df5c55da8c0a32884f0a7685053b3b
parenteb86913dcf72dcb628d9b5250aabd2da0ca7df49
parent82747ed93e5af967b691653a56849da2c209d85d
auto merge of #12547 : jagtalon/rust/jag/rust/tutorial-freezing, r=pnkfelix

- "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.
src/doc/tutorial.md