mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 20:24:32 -06:00
Fixing more spelling
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user