Skip to content

Commit 534a2b5

Browse files
author
Jonathan Turner
authored
Rollup merge of #36957 - cynicaldevil:docs, r=frewsxcv
Minor modifications in concurrency section of the Rust book Fixes #36939 r? @steveklabnik
2 parents 5dcd71f + 335d393 commit 534a2b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/book/concurrency.md

Lines changed: 3 additions & 3 deletions
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)