diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-07-27 13:34:57 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-27 13:34:57 +0000 |
| commit | 4bfb6d3fb5e8a04b3932760df41593cd4dcbf766 (patch) | |
| tree | 1f47f69c9d0c9379409ff51c51eabf3110d00f96 | |
| parent | 887b500e2319c11f25284b0709f321209b687877 (diff) | |
| parent | 9339d8cac3e6ea8c10ad11c581f8cfed5014d89e (diff) | |
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
| -rw-r--r-- | clippy_lints/src/non_std_lazy_statics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/non_std_lazy_statics.rs b/clippy_lints/src/non_std_lazy_statics.rs index abee3c44c5a..7ecde40aee0 100644 --- a/clippy_lints/src/non_std_lazy_statics.rs +++ b/clippy_lints/src/non_std_lazy_statics.rs @@ -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 |
