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
commit 4bfb6d3fb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,7 @@ declare_clippy_lint! {
/// 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