]> git.lizzy.rs Git - rust.git/commitdiff
Update lint example for `collapsible_str_replace`
authorGrachev Mikhail <work@mgrachev.com>
Tue, 8 Nov 2022 12:33:50 +0000 (15:33 +0300)
committerGitHub <noreply@github.com>
Tue, 8 Nov 2022 12:33:50 +0000 (15:33 +0300)
clippy_lints/src/methods/mod.rs

index 1c0bbe086f7c88374b7c5fd84b88d155ebcc57ee..686930a0bbe96a3cbba75e0c24b84e9db81bd1d3 100644 (file)
     /// ```
     /// 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,