File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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///
You can’t perform that action at this time.
0 commit comments