Skip to content

Commit

Permalink
Fix typo in std::sync::Mutex example
Browse files Browse the repository at this point in the history
  • Loading branch information
naglis committed Dec 10, 2023
1 parent 06e02d5 commit 7d50a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sync/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ use crate::sys::locks as sys;
/// let result = data.iter().fold(0, |acc, x| acc + x * 2);
/// data.push(result);
/// // We drop the `data` explicitly because it's not necessary anymore and the
/// // thread still has work to do. This allow other threads to start working on
/// // thread still has work to do. This allows other threads to start working on
/// // the data immediately, without waiting for the rest of the unrelated work
/// // to be done here.
/// //
Expand Down

0 comments on commit 7d50a39

Please sign in to comment.