Update lint example for collapsible_str_replace

This commit is contained in:
Grachev Mikhail 2022-11-08 15:33:50 +03:00 committed by GitHub
parent 5857a01742
commit 70010850e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,7 @@ declare_clippy_lint! {
/// ``` /// ```
/// Use instead: /// Use instead:
/// ```rust /// ```rust
/// let hello = "hesuo worpd".replace(&['s', 'u', 'p'], "l"); /// let hello = "hesuo worpd".replace(['s', 'u', 'p'], "l");
/// ``` /// ```
#[clippy::version = "1.65.0"] #[clippy::version = "1.65.0"]
pub COLLAPSIBLE_STR_REPLACE, pub COLLAPSIBLE_STR_REPLACE,