diff --git a/src/ch15-00-smart-pointers.md b/src/ch15-00-smart-pointers.md index 5273b495c..cbef8a9b0 100644 --- a/src/ch15-00-smart-pointers.md +++ b/src/ch15-00-smart-pointers.md @@ -88,7 +88,7 @@ but you need to be able to mutate the underlying data. Same thing as RefCell but for types that are Copy. No borrow checking rules here anyway. So just reason #2 above. -## Is this really safe? Yes srsly +## Is this really safe? Yes! RefCell is still doing the checks, just at runtime Cell is safe bc Copy types don't need the ownership rules anyway diff --git a/src/ch16-00-concurrency.md b/src/ch16-00-concurrency.md index d7d5a1a98..62dc71a0e 100644 --- a/src/ch16-00-concurrency.md +++ b/src/ch16-00-concurrency.md @@ -7,7 +7,7 @@ Rust's focus on aliasability ends up solving these problems. This is a library abstraction. -Shared mutable state is a problem. Both useful. Functional languagess get rid of +Shared mutable state is a problem. Both useful. Functional languages get rid of mutability. Ownership rules (that tame the "shared" aspect) enable fearless concurrency: the @@ -32,7 +32,7 @@ If you have a different threaded mechanism, you need a runtime, rust is trying to not have a heavy runtime. These are the reasons Rust's concurrency model is this way as opposed to other -lang's ways, which are optimizing for different things. +language's ways, which are optimizing for different things. ## Let's get a thread: `thread::spawn`