Skip to content

Commit 744085e

Browse files
committed
Improve memory-model section very slightly.
1 parent f5b2963 commit 744085e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/doc/reference.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3842,8 +3842,10 @@ is to be destroyed.
38423842
# Memory model
38433843

38443844
A Rust program's memory consists of a static set of *items* and a *heap*.
3845-
Immutable portions of the heap may be shared between threads, mutable portions
3846-
may not.
3845+
Immutable portions of the heap may be safely shared between threads, mutable
3846+
portions may not be safely shared, but several mechanisms for effectively-safe
3847+
sharing of mutable values, built on unsafe code but enforcing a safe locking
3848+
discipline, exist in the standard library.
38473849

38483850
Allocations in the stack consist of *variables*, and allocations in the heap
38493851
consist of *boxes*.

0 commit comments

Comments
 (0)