Update lint example for collapsible_str_replace
This commit is contained in:
parent
5857a01742
commit
70010850e4
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ declare_clippy_lint! {
|
|||
/// ```
|
||||
/// Use instead:
|
||||
/// ```rust
|
||||
/// let hello = "hesuo worpd".replace(&['s', 'u', 'p'], "l");
|
||||
/// let hello = "hesuo worpd".replace(['s', 'u', 'p'], "l");
|
||||
/// ```
|
||||
#[clippy::version = "1.65.0"]
|
||||
pub COLLAPSIBLE_STR_REPLACE,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue