Skip to content

Commit 23b4fe6

Browse files
sguedgiraffate
andauthored
Apply suggestions from code review
The expect_used lint is allow-by-default, so it would be better to show the case where this is enabled. Co-authored-by: Takayuki Nakata <[email protected]>
1 parent 1fd9f2d commit 23b4fe6

File tree

1 file changed

+2
-2
lines changed
  • clippy_lints/src/methods

1 file changed

+2
-2
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,15 @@ declare_clippy_lint! {
197197
/// result.unwrap();
198198
/// ```
199199
///
200-
/// If [expect_used](#expect_used) is allowed, instead:
200+
/// Use instead:
201201
/// ```rust
202202
/// # let option = Some(1);
203203
/// # let result: Result<usize, ()> = Ok(1);
204204
/// option.expect("more helpful message");
205205
/// result.expect("more helpful message");
206206
/// ```
207207
///
208-
/// Otherwise try using
208+
/// If [expect_used](#expect_used) is enabled, instead:
209209
/// ```rust,ignore
210210
/// # let option = Some(1);
211211
/// # let result: Result<usize, ()> = Ok(1);

0 commit comments

Comments
 (0)