Skip to content

Commit

Permalink
Auto merge of #118792 - naglis:fix-mutex-doc-typo, r=workingjubilee
Browse files Browse the repository at this point in the history
Fix typo in `std::sync::Mutex` example
  • Loading branch information
bors committed Dec 10, 2023
2 parents 42dfac5 + 7d50a39 commit c1a3919
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 c1a3919

Please sign in to comment.