diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-08-22 22:00:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-22 22:00:52 -0400 |
| commit | 6991786d5ebba0f917a09fb5d5f1c4a166089163 (patch) | |
| tree | 73256f933788b8be3b1ecc7f9504c4bfd3a56cd6 | |
| parent | 8066e76c7df47fbcb7eca3e348b920a854919f87 (diff) | |
| parent | e84d29284c0f4d83e4033b39c6f21826d448373b (diff) | |
| download | rust-6991786d5ebba0f917a09fb5d5f1c4a166089163.tar.gz rust-6991786d5ebba0f917a09fb5d5f1c4a166089163.zip | |
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.
| -rw-r--r-- | library/std/src/thread/local.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/std/src/thread/local.rs b/library/std/src/thread/local.rs index 0ad014ccd3e..797feeb2bbb 100644 --- a/library/std/src/thread/local.rs +++ b/library/std/src/thread/local.rs @@ -8,8 +8,8 @@ use crate::fmt; /// A thread local storage (TLS) key which owns its contents. /// -/// This key uses the fastest possible implementation available to it for the -/// target platform. It is instantiated with the [`thread_local!`] macro and the +/// This key uses the fastest implementation available on the target platform. +/// It is instantiated with the [`thread_local!`] macro and the /// primary method is the [`with`] method, though there are helpers to make /// working with [`Cell`] types easier. /// @@ -24,10 +24,10 @@ use crate::fmt; /// [`with`]) within a thread, and values that implement [`Drop`] get /// destructed when a thread exits. Some platform-specific caveats apply, which /// are explained below. -/// Note that, should the destructor panics, the whole process will be [aborted]. +/// Note that if the destructor panics, the whole process will be [aborted]. /// /// A `LocalKey`'s initializer cannot recursively depend on itself. Using a -/// `LocalKey` in this way may cause panics, aborts or infinite recursion on +/// `LocalKey` in this way may cause panics, aborts, or infinite recursion on /// the first call to `with`. /// /// [aborted]: crate::process::abort |
