Update lint example for collapsible_str_replace
This commit is contained in:
parent
5857a01742
commit
70010850e4
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user