Skip to content

Commit 8410440

Browse files
committed
Fix typo in doc comment
1 parent e653658 commit 8410440

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

library/std/src/thread/local.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,15 @@ use crate::fmt;
2626
/// are explained below.
2727
/// Note that, should the destructor panic, the whole process will be [aborted].
2828
/// On platforms where initialization requires memory allocation, this is
29-
/// performed directly through [`System`], allowing the [`global allocator`]
29+
/// performed directly through [`System`], allowing the [global allocator]
3030
/// to make use of thread local storage.
3131
///
32-
/// [`System`]: crate::alloc::System
33-
/// [`global allocator`]: crate::alloc
34-
///
3532
/// A `LocalKey`'s initializer cannot recursively depend on itself. Using a
3633
/// `LocalKey` in this way may cause panics, aborts or infinite recursion on
3734
/// the first call to `with`.
3835
///
36+
/// [`System`]: crate::alloc::System
37+
/// [global allocator]: crate::alloc
3938
/// [aborted]: crate::process::abort
4039
///
4140
/// # Single-thread Synchronization

0 commit comments

Comments
 (0)