Updating docs to reflect more recent changes to expect_fun_call lint

This commit is contained in:
Donald Robertson
2018-06-11 14:17:40 +01:00
parent e70632215e
commit c6fb47331a

View File

@@ -347,7 +347,11 @@ declare_clippy_lint! {
/// ```
/// this can instead be written:
/// ```rust
/// foo.unwrap_or_else(|_| panic!(&format("Err {}: {}", err_code, err_msg)))
/// foo.unwrap_or_else(|_| panic!("Err {}: {}", err_code, err_msg))
/// ```
/// or
/// ```rust
/// foo.unwrap_or_else(|_| panic!(format("Err {}: {}", err_code, err_msg).as_str()))
/// ```
declare_clippy_lint! {
pub EXPECT_FUN_CALL,