Skip to content

Commit 91d33c3

Browse files
committed
Fix LazyLock doc links
1 parent 7c82ea8 commit 91d33c3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

crates/utils/src/multiversion.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ use std::sync::OnceLock;
2020
///
2121
/// 1. The first rule matches a dynamic dispatch function, optionally followed by extra private
2222
/// helper functions. Dynamic dispatch is controlled at runtime by supplying a path to a
23-
/// [`LazyLock`] containing a [`Version`] value in the `dyn_dispatch` attribute.
23+
/// [`LazyLock`](std::sync::LazyLock) containing a [`Version`] value in the `dyn_dispatch`
24+
/// attribute.
2425
///
2526
/// 2. The second rule matches library functions without a dynamic dispatch function.
2627
///
2728
/// 3. The third rule takes a name of a library function generated using the second rule and
28-
/// expands to a [`LazyLock`] evaluating to the fastest version, unless a global override is set
29-
/// using [`Version::set_override`]. The return value is intended to be stored in a `static` item
30-
/// for use in a `dyn_dispatch` attribute.
29+
/// expands to a [`LazyLock`](std::sync::LazyLock) evaluating to the fastest version, unless a
30+
/// global override is set using [`Version::set_override`]. The return value is intended to be
31+
/// stored in a `static` item for use in a `dyn_dispatch` attribute.
3132
///
3233
/// The first two rules start with a use statement which can be used for wildcard imports of
3334
/// multiversioned libraries. Each path will be expanded to include the version's name - e.g. the

0 commit comments

Comments
 (0)