Skip to content

Commit 9b81875

Browse files
committed
Adding initial commit of the Concurrency Chapter
1 parent 3279c0e commit 9b81875

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/concurrency.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
r[concurrency]
2+
# Concurrency
3+
4+
r[concurrency.intro]
5+
Rust provides language and library features for writing concurrent programs. These features are designed to prevent data races — situations in which multiple threads access the same memory without proper synchronization, with at least one of the accesses modifying that memory.
6+
7+
This chapter describes the traits, types, and concepts that Rust uses to express and enforce safe concurrency.

src/glossary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ or not independent of applied type arguments. Given `trait Foo<T, U>`,
135135
A `struct`, `enum`, or `union` which was defined in the current crate.
136136
This is not affected by applied type arguments. `struct Foo` is considered local, but
137137
`Vec<Foo>` is not. `LocalType<ForeignType>` is local. Type aliases do not
138-
affect locality.
138+
affect locality.
139139

140140
### Module
141141

0 commit comments

Comments
 (0)