Skip to content

Commit f03656a

Browse files
authored
Rollup merge of rust-lang#39862 - stjepang:fix-wording-localkey, r=GuillaumeGomez
Fix wording in LocalKey documentation Fixes rust-lang#39841 r? @GuillaumeGomez
2 parents f3d4c8c + 1fbbe79 commit f03656a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/libstd/sync/once.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ impl Once {
316316
}
317317

318318
// Once we've enqueued ourselves, wait in a loop.
319-
// Aftewards reload the state and continue with what we
319+
// Afterwards reload the state and continue with what we
320320
// were doing from before.
321321
while !node.signaled.load(Ordering::SeqCst) {
322322
thread::park();

src/libstd/thread/local.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ use mem;
2828
/// # Initialization and Destruction
2929
///
3030
/// Initialization is dynamically performed on the first call to `with()`
31-
/// within a thread, and values support destructors which will be run when a
32-
/// thread exits.
31+
/// within a thread, and values that implement `Drop` get destructed when a
32+
/// thread exits. Some caveats apply, which are explained below.
3333
///
3434
/// # Examples
3535
///

0 commit comments

Comments
 (0)