]> git.lizzy.rs Git - rust.git/commitdiff
Update diagnostics.rs
authorlyj <sjtu5140809011@gmail.com>
Thu, 4 Nov 2021 03:57:14 +0000 (11:57 +0800)
committerGitHub <noreply@github.com>
Thu, 4 Nov 2021 03:57:14 +0000 (11:57 +0800)
clippy_utils/src/diagnostics.rs

index 9302e5c21faa4f7606d485726bcbf256aba1cfb8..d47b002ad7aca95a94336ac60e6b6f511913d3b4 100644 (file)
@@ -72,7 +72,7 @@ pub fn span_lint<T: LintContext>(cx: &T, lint: &'static Lint, sp: impl Into<Mult
 /// 6  |     let other_f64_nan = 0.0f64 / 0.0;
 ///    |                         ^^^^^^^^^^^^
 ///    |
-///    = help: Consider using `f64::NAN` if you would like a constant representing NaN
+///    = help: consider using `f64::NAN` if you would like a constant representing NaN
 /// ```
 pub fn span_lint_and_help<'a, T: LintContext>(
     cx: &'a T,