Fix wording in LocalKey documentation

This commit is contained in:
Stjepan Glavina 2017-02-15 23:26:29 +01:00
parent 025c328bf5
commit 1fbbe79bcb
2 changed files with 3 additions and 3 deletions

View File

@ -316,7 +316,7 @@ fn call_inner(&'static self,
}
// 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 @@
/// # 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
///