Skip to content

Commit 4bfb6d3

Browse files
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
2 parents 887b500 + 9339d8c commit 4bfb6d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/non_std_lazy_statics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ declare_clippy_lint! {
4949
/// Some functions could be replaced as well if we have replaced `Lazy` to `LazyLock`,
5050
/// therefore after suggesting replace the type, we need to make sure the function calls can be
5151
/// replaced, otherwise the suggestions cannot be applied thus the applicability should be
52-
/// `Unspecified` or `MaybeIncorret`.
52+
/// [`Applicability::Unspecified`] or [`Applicability::MaybeIncorrect`].
5353
static FUNCTION_REPLACEMENTS: &[(&str, Option<&str>)] = &[
5454
("once_cell::sync::Lazy::force", Some("std::sync::LazyLock::force")),
5555
("once_cell::sync::Lazy::get", None), // `std::sync::LazyLock::get` is experimental

0 commit comments

Comments
 (0)