]> git.lizzy.rs Git - rust.git/commitdiff
Minor modifications in concurrency section of the Rust book
authorNikhil Shagrithaya <nikhilshagri@gmail.com>
Tue, 4 Oct 2016 17:30:22 +0000 (17:30 +0000)
committerNikhil Shagrithaya <nikhilshagri@gmail.com>
Tue, 4 Oct 2016 22:09:29 +0000 (22:09 +0000)
src/doc/book/concurrency.md

index a783650f8ea2df3b16f26be3876fc1e50c4324b5..41d8345b720949a68339ad847b37c7e9ad2b57fa 100644 (file)
@@ -4,7 +4,7 @@ Concurrency and parallelism are incredibly important topics in computer
 science, and are also a hot topic in industry today. Computers are gaining more
 and more cores, yet many programmers aren't prepared to fully utilize them.
 
-Rust's memory safety features also apply to its concurrency story too. Even
+Rust's memory safety features also apply to its concurrency story. Even
 concurrent Rust programs must be memory safe, having no data races. Rust's type
 system is up to the task, and gives you powerful ways to reason about
 concurrent code at compile time.
@@ -281,8 +281,8 @@ And... still gives us an error.
 ```
 
 `Arc<T>` by default has immutable contents. It allows the _sharing_ of data
-between threads, but shared mutable data is unsafe and when threads are
-involved can cause data races!
+between threads, but shared mutable data is unsafeand when threads are
+involvedcan cause data races!
 
 
 Usually when we wish to make something in an immutable position mutable, we use