Skip to content

Commit 230d9cb

Browse files
dvermdflip1995
andauthored
Update clippy_lints/src/ref_option_ref.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
1 parent 6212950 commit 230d9cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/ref_option_ref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl<'tcx> LateLintPass<'tcx> for RefOptionRef {
5555
cx,
5656
REF_OPTION_REF,
5757
ty.span,
58-
"since & implements Copy trait, &Option<&T> can be simplifyied into Option<&T>",
58+
"since `&` implements the `Copy` trait, `&Option<&T>` can be simplified to `Option<&T>`",
5959
"try",
6060
format!("Option<{}>", &snippet(cx, inner_ty.span, "..")),
6161
Applicability::MaybeIncorrect,

0 commit comments

Comments
 (0)