Skip to content

Commit 092b073

Browse files
committed
Auto merge of #33203 - Ryman:patch-3, r=alexcrichton
libstd: fix typos in thread::LocalKey docs
2 parents 03bef4c + 2b71219 commit 092b073

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/thread/local.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ use mem;
6060
/// # Platform-specific behavior
6161
///
6262
/// Note that a "best effort" is made to ensure that destructors for types
63-
/// stored in thread local storage are run, but not all platforms can gurantee
63+
/// stored in thread local storage are run, but not all platforms can guarantee
6464
/// that destructors will be run for all types in thread local storage. For
6565
/// example, there are a number of known caveats where destructors are not run:
6666
///
@@ -254,7 +254,7 @@ impl<T: 'static> LocalKey<T> {
254254
/// destruction has completed. Keys without destructors (e.g. with types
255255
/// that are `Copy`), may never enter the `Destroyed` state.
256256
///
257-
/// Keys in the `Uninitialized` can be accessed so long as the
257+
/// Keys in the `Uninitialized` state can be accessed so long as the
258258
/// initialization does not panic. Keys in the `Valid` state are guaranteed
259259
/// to be able to be accessed. Keys in the `Destroyed` state will panic on
260260
/// any call to `with`.

0 commit comments

Comments
 (0)