diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-26 18:51:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-26 18:51:41 +0200 |
| commit | 9babe98562745dbdd6d7d376a004f91078cbe35e (patch) | |
| tree | 0c1bcefc27f7a7a7c9701831684348e00cfd9c05 /library/std/src/sync | |
| parent | ea8bd06b56bd34098b315f811d911a1d4ad9cb5d (diff) | |
| parent | 9a55e9edc57fa939185542be7e2d5b89418c78c9 (diff) | |
| download | rust-9babe98562745dbdd6d7d376a004f91078cbe35e.tar.gz rust-9babe98562745dbdd6d7d376a004f91078cbe35e.zip | |
Rollup merge of #110419 - jsoref:spelling-library, r=jyn514
Spelling library Split per https://github.com/rust-lang/rust/pull/110392 I can squash once people are happy w/ the changes. It's really uncommon for large sets of changes to be perfectly acceptable w/o at least some changes. I probably won't have time to respond until tomorrow or the next day
Diffstat (limited to 'library/std/src/sync')
| -rw-r--r-- | library/std/src/sync/once_lock/tests.rs | 2 | ||||
| -rw-r--r-- | library/std/src/sync/remutex.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sync/once_lock/tests.rs b/library/std/src/sync/once_lock/tests.rs index 46695225b9f..d5d32e73d88 100644 --- a/library/std/src/sync/once_lock/tests.rs +++ b/library/std/src/sync/once_lock/tests.rs @@ -24,7 +24,7 @@ fn sync_once_cell() { assert_eq!(ONCE_CELL.get(), Some(&92)); }); - ONCE_CELL.get_or_init(|| panic!("Kabom!")); + ONCE_CELL.get_or_init(|| panic!("Kaboom!")); assert_eq!(ONCE_CELL.get(), Some(&92)); } diff --git a/library/std/src/sync/remutex.rs b/library/std/src/sync/remutex.rs index 519ec2c32bd..0ced48d10b7 100644 --- a/library/std/src/sync/remutex.rs +++ b/library/std/src/sync/remutex.rs @@ -7,7 +7,7 @@ use crate::panic::{RefUnwindSafe, UnwindSafe}; use crate::sync::atomic::{AtomicUsize, Ordering::Relaxed}; use crate::sys::locks as sys; -/// A re-entrant mutual exclusion +/// A reentrant mutual exclusion /// /// This mutex will block *other* threads waiting for the lock to become /// available. The thread which has already locked the mutex can lock it |
