Skip to content

Commit 7001085

Browse files
authored
Update lint example for collapsible_str_replace
1 parent 5857a01 commit 7001085

File tree

1 file changed

+1
-1
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ declare_clippy_lint! {
159159
/// ```
160160
/// Use instead:
161161
/// ```rust
162-
/// let hello = "hesuo worpd".replace(&['s', 'u', 'p'], "l");
162+
/// let hello = "hesuo worpd".replace(['s', 'u', 'p'], "l");
163163
/// ```
164164
#[clippy::version = "1.65.0"]
165165
pub COLLAPSIBLE_STR_REPLACE,

0 commit comments

Comments
 (0)