You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: library/std/src/thread/local.rs
+6-13Lines changed: 6 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -34,14 +34,7 @@ use crate::fmt;
34
34
///
35
35
/// # Behavior with Foreign Threads
36
36
///
37
-
/// `LocalKey` exhibits the same foreign thread compatibility as the [`thread_local!`]
38
-
/// macro since it uses the same underlying thread-local storage mechanisms.
39
-
/// See the [`thread_local!`] documentation for detailed platform-specific behavior.
40
-
///
41
-
/// ## Example with Foreign Threads
42
-
///
43
-
/// ```
44
-
/// use std::cell::RefCell;
37
+
/// `LocalKey` exhibits the same foreign thread compatibility as the [`thread_local!`] macro since it uses the same underlying thread-local storage mechanisms. See the [`thread_local!`] documentation for detailed platform-specific behavior. ## Example with Foreign Threads ``` use std::cell::RefCell;
45
38
/// use std::thread::LocalKey;
46
39
///
47
40
/// static DATA: LocalKey<RefCell<String>> = {
@@ -193,7 +186,7 @@ impl<T: 'static> fmt::Debug for LocalKey<T> {
0 commit comments