]> git.lizzy.rs Git - rust.git/commitdiff
libstd: fix typos in thread::LocalKey docs
authorRyman <haqkrs@gmail.com>
Mon, 25 Apr 2016 20:01:19 +0000 (21:01 +0100)
committerRyman <haqkrs@gmail.com>
Mon, 25 Apr 2016 20:01:19 +0000 (21:01 +0100)
src/libstd/thread/local.rs

index 69395001bbfdcd0db9abc7f20be5cd2fba5ecef6..6b54ec8afca9cfff881dffc814082ded0b41e62d 100644 (file)
@@ -60,7 +60,7 @@
 /// # Platform-specific behavior
 ///
 /// Note that a "best effort" is made to ensure that destructors for types
-/// stored in thread local storage are run, but not all platforms can gurantee
+/// stored in thread local storage are run, but not all platforms can guarantee
 /// that destructors will be run for all types in thread local storage. For
 /// example, there are a number of known caveats where destructors are not run:
 ///
@@ -254,7 +254,7 @@ unsafe fn init(&self, slot: &UnsafeCell<Option<T>>) -> &T {
     /// destruction has completed. Keys without destructors (e.g. with types
     /// that are `Copy`), may never enter the `Destroyed` state.
     ///
-    /// Keys in the `Uninitialized` can be accessed so long as the
+    /// Keys in the `Uninitialized` state can be accessed so long as the
     /// initialization does not panic. Keys in the `Valid` state are guaranteed
     /// to be able to be accessed. Keys in the `Destroyed` state will panic on
     /// any call to `with`.