diff options
| author | Jonathan Price <jonmarkprice@users.noreply.github.com> | 2016-06-27 16:34:35 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-27 16:34:35 -0500 |
| commit | cae02fff6a36b19d65c4bb2ff993e373dad16032 (patch) | |
| tree | 7a626e65bc0583501a242097f60a2add0d3c7303 /src | |
| parent | 126af085be2b760b859d073d8aff164572ef7d4a (diff) | |
| download | rust-cae02fff6a36b19d65c4bb2ff993e373dad16032.tar.gz rust-cae02fff6a36b19d65c4bb2ff993e373dad16032.zip | |
fixed backquotes and awkward borrowing clause
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/book/ownership.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/book/ownership.md b/src/doc/book/ownership.md index f445bed015c..73775956b6c 100644 --- a/src/doc/book/ownership.md +++ b/src/doc/book/ownership.md @@ -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. -It’s the topic of the next section! +Luckily, Rust offers a feature which helps us solve this problem. +It’s called borrowing and is the topic of the next section! |
