Skip to content

Commit 53e86b9

Browse files
committed
std: fix broken internal doc links
1 parent aaca3f8 commit 53e86b9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

library/std/src/sys/common/thread_local/fast_local.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
//!
33
//! To achieve the best performance, we need to differentiate between four types
44
//! of TLS, resulting from the method of initialization used (`const` or lazy)
5-
//! and the drop requirements of the stored type, as indicated by [`needs_drop`].
6-
//! However, across these types a TLS variable can only be in three different
7-
//! different states, allowing us to use a common implementation specialized by
8-
//! type parameters. The three states are:
5+
//! and the drop requirements of the stored type, as indicated by
6+
//! [`needs_drop`](crate::mem::needs_drop). However, across these types a TLS
7+
//! variable can only be in three different different states, allowing us to
8+
//! use a common implementation specialized by type parameters. The three states
9+
//! are:
910
//!
10-
//! 1. [`Initial`](State::Inital): the destructor has not been registered and/or
11+
//! 1. [`Initial`](State::Initial): the destructor has not been registered and/or
1112
//! the variable is uninitialized.
1213
//! 2. [`Alive`](State::Alive): if it exists, the destructor is registered. The
1314
//! variable is initialized.

0 commit comments

Comments
 (0)