about summary refs log tree commit diff
diff options
context:
space:
mode:
authordvermd <315743+dvermd@users.noreply.github.com>2020-10-29 17:39:19 +0100
committerGitHub <noreply@github.com>2020-10-29 17:39:19 +0100
commit230d9cbe36b809d45efb37092b102bc5d3b350d8 (patch)
tree169c8b08a2620749e37963a73172e181dd4a5fce
parent6212950ceb9add443db7450f2e4790fbb2fbddd7 (diff)
downloadrust-230d9cbe36b809d45efb37092b102bc5d3b350d8.tar.gz
rust-230d9cbe36b809d45efb37092b102bc5d3b350d8.zip
Update clippy_lints/src/ref_option_ref.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
-rw-r--r--clippy_lints/src/ref_option_ref.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/ref_option_ref.rs b/clippy_lints/src/ref_option_ref.rs
index e8c60842e76..a914a77d48b 100644
--- a/clippy_lints/src/ref_option_ref.rs
+++ b/clippy_lints/src/ref_option_ref.rs
@@ -55,7 +55,7 @@ impl<'tcx> LateLintPass<'tcx> for RefOptionRef {
                     cx,
                     REF_OPTION_REF,
                     ty.span,
-                    "since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>",
+                    "since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`",
                     "try",
                     format!("Option<{}>", &snippet(cx, inner_ty.span, "..")),
                     Applicability::MaybeIncorrect,