Fix typo non_std_lazy_statics.rs (#15357)

Changes `MaybeIncorret` to `MaybeIncorrect`.

And since this is part of a doc comment, it might as well be a link.

changelog: none
This commit is contained in:
Samuel Tardieu
2025-07-27 13:34:57 +00:00
committed by GitHub
+1 -1
View File
@@ -49,7 +49,7 @@
/// Some functions could be replaced as well if we have replaced `Lazy` to `LazyLock`,
/// therefore after suggesting replace the type, we need to make sure the function calls can be
/// replaced, otherwise the suggestions cannot be applied thus the applicability should be
/// `Unspecified` or `MaybeIncorret`.
/// [`Applicability::Unspecified`] or [`Applicability::MaybeIncorrect`].
static FUNCTION_REPLACEMENTS: &[(&str, Option<&str>)] = &[
("once_cell::sync::Lazy::force", Some("std::sync::LazyLock::force")),
("once_cell::sync::Lazy::get", None), // `std::sync::LazyLock::get` is experimental