1
Fork 0

Rollup merge of #39862 - stjepang:fix-wording-localkey, r=GuillaumeGomez

Fix wording in LocalKey documentation

Fixes #39841

r? @GuillaumeGomez
This commit is contained in:
Guillaume Gomez 2017-02-18 18:10:12 +01:00 committed by GitHub
commit e4c285d1ac
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -28,8 +28,8 @@ use mem;
/// # Initialization and Destruction
///
/// Initialization is dynamically performed on the first call to `with()`
/// within a thread, and values support destructors which will be run when a
/// thread exits.
/// within a thread, and values that implement `Drop` get destructed when a
/// thread exits. Some caveats apply, which are explained below.
///
/// # Examples
///