]> git.lizzy.rs Git - rust.git/commitdiff
Fix wording in LocalKey documentation
authorStjepan Glavina <stjepang@gmail.com>
Wed, 15 Feb 2017 22:26:29 +0000 (23:26 +0100)
committerStjepan Glavina <stjepang@gmail.com>
Wed, 15 Feb 2017 22:31:51 +0000 (23:31 +0100)
src/libstd/sync/once.rs
src/libstd/thread/local.rs

index ba99375139139c7d2a1cd71ed5e9c3961e8233df..1e7394c0b09e7e88f9b52fb9e2f0f57efe702b9c 100644 (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();
index 5166ddf8a21b620bc516150da11ae1dd51926055..66f09a7069c130969b65a3c170c6b9f2ce64b08f 100644 (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
 ///