diff --git a/src/doc/guide-ownership.md b/src/doc/guide-ownership.md index ddabb1de76551..88139a1a513ef 100644 --- a/src/doc/guide-ownership.md +++ b/src/doc/guide-ownership.md @@ -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`, because it has a single owner. We can do t with `Rc` instead: +`Box`, because it has a single owner. We can do it with `Rc` instead: ```rust use std::rc::Rc; diff --git a/src/doc/guide-testing.md b/src/doc/guide-testing.md index 0452ed0bfeb55..682c89fcc53fc 100644 --- a/src/doc/guide-testing.md +++ b/src/doc/guide-testing.md @@ -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: