guide-ownership.md, guide-testing.md: fix typos

Signed-off-by: Philipp Gesang <phg@phi-gamma.net>
This commit is contained in:
Philipp Gesang 2014-12-07 22:02:17 +01:00
parent 42deaa5e42
commit c1b69c7a82
No known key found for this signature in database
GPG Key ID: 5A7AECC5222FF504
2 changed files with 2 additions and 2 deletions

View File

@ -416,7 +416,7 @@ note: `car` moved here because it has type `Car`, which is non-copyable
```
We need our `Car` to be pointed to by multiple `Wheel`s. We can't do that with
`Box<T>`, because it has a single owner. We can do t with `Rc<T>` instead:
`Box<T>`, because it has a single owner. We can do it with `Rc<T>` instead:
```rust
use std::rc::Rc;

View File

@ -357,7 +357,7 @@ Let's finally check out that third section: documentation tests.
Nothing is better than documentation with examples. Nothing is worse than
examples that don't actually work, because the code has changed since the
documentation has been written. To this end, Rust supports automaticaly
documentation has been written. To this end, Rust supports automatically
running examples in your documentation. Here's a fleshed-out `src/lib.rs`
with examples: