mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 08:53:35 +00:00
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:
|
||||
/// ```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…
Reference in New Issue
Block a user