fixed backquotes and awkward borrowing clause

This commit is contained in:
Jonathan Price 2016-06-27 16:34:35 -05:00 committed by GitHub
parent 126af085be
commit cae02fff6a

View file

@ -212,7 +212,7 @@ But, unlike a move, we can still use `v` afterward. This is because an `i32`
has no pointers to data somewhere else, copying it is a full copy.
All primitive types implement the `Copy` trait and their ownership is
therefore not moved like one would assume, following the ´ownership rules´.
therefore not moved like one would assume, following the 'ownership rules'.
To give an example, the two following snippets of code only compile because the
`i32` and `bool` types implement the `Copy` trait.
@ -288,6 +288,6 @@ let (v1, v2, answer) = foo(v1, v2);
Ugh! The return type, return line, and calling the function gets way more
complicated.
Luckily, Rust offers a feature, borrowing, which helps us solve this problem.
Its the topic of the next section!
Luckily, Rust offers a feature which helps us solve this problem.
Its called borrowing and is the topic of the next section!