File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 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(
1919) {
2020 if_chain ! {
2121 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)
2324 if meets_msrv( msrv, & msrvs:: EXPECT_ERR ) ;
2425
2526 // Grabs the `Result<T, E>` type
Original file line number Diff line number Diff line change @@ -368,7 +368,7 @@ declare_clippy_lint! {
368368 /// Checks for `.err().expect()` calls on the `Result` type.
369369 ///
370370 /// ### 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 ()`.
372372 ///
373373 /// ### Example
374374 /// ```should_panic
You can’t perform that action at this time.
0 commit comments