File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ pub(super) fn check(
19
19
) {
20
20
if_chain ! {
21
21
if is_type_diagnostic_item( cx, cx. typeck_results( ) . expr_ty( recv) , sym:: Result ) ;
22
- // Test the version to make sure the lint can be showed (expect_err has been introduced in rust 1.17.0 : https://github.com/rust-lang/rust/pull/38982)
22
+ // Test the version to make sure the lint can be showed (expect_err has been
23
+ // introduced in rust 1.17.0 : https://github.com/rust-lang/rust/pull/38982)
23
24
if meets_msrv( msrv, & msrvs:: EXPECT_ERR ) ;
24
25
25
26
// Grabs the `Result<T, E>` type
Original file line number Diff line number Diff line change @@ -368,7 +368,7 @@ declare_clippy_lint! {
368
368
/// Checks for `.err().expect()` calls on the `Result` type.
369
369
///
370
370
/// ### Why is this bad?
371
- /// `.expect_err()` can be called directly to avoid the extra type conversion from `ok ()`.
371
+ /// `.expect_err()` can be called directly to avoid the extra type conversion from `err ()`.
372
372
///
373
373
/// ### Example
374
374
/// ```should_panic
You can’t perform that action at this time.
0 commit comments