Skip to content

Commit 58c894b

Browse files
authored
Unrolled build for #145633
Rollup merge of #145633 - qxzcode:patch-1, r=jhpratt Fix some typos in LocalKey documentation A few minor grammatical/wording changes in the `std::thread::LocalKey` documentation.
2 parents 78b89eb + e84d292 commit 58c894b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/std/src/thread/local.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use crate::fmt;
88

99
/// A thread local storage (TLS) key which owns its contents.
1010
///
11-
/// This key uses the fastest possible implementation available to it for the
12-
/// target platform. It is instantiated with the [`thread_local!`] macro and the
11+
/// This key uses the fastest implementation available on the target platform.
12+
/// It is instantiated with the [`thread_local!`] macro and the
1313
/// primary method is the [`with`] method, though there are helpers to make
1414
/// working with [`Cell`] types easier.
1515
///
@@ -24,10 +24,10 @@ use crate::fmt;
2424
/// [`with`]) within a thread, and values that implement [`Drop`] get
2525
/// destructed when a thread exits. Some platform-specific caveats apply, which
2626
/// are explained below.
27-
/// Note that, should the destructor panics, the whole process will be [aborted].
27+
/// Note that if the destructor panics, the whole process will be [aborted].
2828
///
2929
/// A `LocalKey`'s initializer cannot recursively depend on itself. Using a
30-
/// `LocalKey` in this way may cause panics, aborts or infinite recursion on
30+
/// `LocalKey` in this way may cause panics, aborts, or infinite recursion on
3131
/// the first call to `with`.
3232
///
3333
/// [aborted]: crate::process::abort

0 commit comments

Comments
 (0)