about summary refs log tree commit diff
path: root/clippy_lints/src
diff options
context:
space:
mode:
authorTim Siegel <siegeltr@gmail.com>2022-08-31 09:09:11 -0400
committerTim Siegel <siegeltr@gmail.com>2022-08-31 09:09:11 -0400
commit28a055dceacd61d1a0faad075d69f71dfd439678 (patch)
tree9dda2ff3d3d9c6bfd32936ae2898ceb1bacd5092 /clippy_lints/src
parentf51aade56f93175dde89177a92e3669ebd8e7592 (diff)
downloadrust-28a055dceacd61d1a0faad075d69f71dfd439678.tar.gz
rust-28a055dceacd61d1a0faad075d69f71dfd439678.zip
match_wild_err_arm: Fix typo in note text
Diffstat (limited to 'clippy_lints/src')
-rw-r--r--clippy_lints/src/matches/match_wild_err_arm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/matches/match_wild_err_arm.rs b/clippy_lints/src/matches/match_wild_err_arm.rs
index bc16f17b619..a3aa2e4b389 100644
--- a/clippy_lints/src/matches/match_wild_err_arm.rs
+++ b/clippy_lints/src/matches/match_wild_err_arm.rs
@@ -40,7 +40,7 @@ pub(crate) fn check<'tcx>(cx: &LateContext<'tcx>, ex: &Expr<'tcx>, arms: &[Arm<'
                                 arm.pat.span,
                                 &format!("`Err({})` matches all errors", ident_bind_name),
                                 None,
-                                "match each error separately or use the error output, or use `.except(msg)` if the error case is unreachable",
+                                "match each error separately or use the error output, or use `.expect(msg)` if the error case is unreachable",
                             );
                         }
                     }