Skip to content

Commit

Permalink
Adjust concurrency wording for send and sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Aug 4, 2023
1 parent 402fac9 commit 413198f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/concurrency.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Send and Sync
.. rubric:: Legality Rules

:dp:`fls_n5l17mlglq11`
The Rust programming language provides synchronization facilities for
:t:`[type]s` through the :std:`core::marker::Send` and
:std:`core::marker::Sync` :t:`[trait]s`.
The Rust programming language provides the :std:`core::marker::Send` and
:std:`core::marker::Sync` :t:`[trait]s` for preventing data races at the
:t:`type` level.

:dp:`fls_2jujsujpjp3w`
A :t:`send type` is a :t:`type` that implements the :std:`core::marker::Send`
Expand All @@ -59,8 +59,8 @@ An :t:`abstract data type` automatically implements the
:t:`[field]s` are :t:`[sync type]s`.

:dp:`fls_zgemofbs5q2x`
A :t:`sync type` shall have :t:`[reference]s` that are safe to transfer across
thread boundaries.
A :t:`sync type` shall have :t:`[value]s` that are allowed to be shared across
multiple threads at any given time without incurring data races.

.. _fls_vyc9vcuamlph:

Expand Down
3 changes: 2 additions & 1 deletion src/values.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ The :t:`type` of a :t:`static` shall implement the :std:`core::marker::Sized`
:t:`trait`.

:dp:`fls_doi4z6u55bi7`
A :t:`mutable static` is a :t:`static` whose :t:`value` can be modified.
A :t:`mutable static` is a :t:`static` with :t:`keyword` ``mut`` whose
:t:`value` can be modified.

:dp:`fls_74hp208pto22`
Access to a :t:`mutable static` shall require :t:`unsafe context`.
Expand Down

0 comments on commit 413198f

Please sign in to comment.