File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ impl Once {
316
316
}
317
317
318
318
// 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
320
320
// were doing from before.
321
321
while !node. signaled . load ( Ordering :: SeqCst ) {
322
322
thread:: park ( ) ;
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ use mem;
28
28
/// # Initialization and Destruction
29
29
///
30
30
/// 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.
33
33
///
34
34
/// # Examples
35
35
///
You can’t perform that action at this time.
0 commit comments