Skip to content

Commit 335d393

Browse files
committed
Minor modifications in concurrency section of the Rust book
1 parent 5ea241b commit 335d393

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/book/concurrency.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Concurrency and parallelism are incredibly important topics in computer
44
science, and are also a hot topic in industry today. Computers are gaining more
55
and more cores, yet many programmers aren't prepared to fully utilize them.
66

7-
Rust's memory safety features also apply to its concurrency story too. Even
7+
Rust's memory safety features also apply to its concurrency story. Even
88
concurrent Rust programs must be memory safe, having no data races. Rust's type
99
system is up to the task, and gives you powerful ways to reason about
1010
concurrent code at compile time.
@@ -281,8 +281,8 @@ And... still gives us an error.
281281
```
282282

283283
`Arc<T>` by default has immutable contents. It allows the _sharing_ of data
284-
between threads, but shared mutable data is unsafe and when threads are
285-
involved can cause data races!
284+
between threads, but shared mutable data is unsafeand when threads are
285+
involvedcan cause data races!
286286

287287

288288
Usually when we wish to make something in an immutable position mutable, we use

0 commit comments

Comments
 (0)