Skip to content

Commit 1691914

Browse files
STRING_ADD example
1 parent 4065702 commit 1691914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/strings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ declare_clippy_lint! {
6363
///
6464
/// Use instead:
6565
/// ```rust
66-
/// let x = "Hello".to_owned();
66+
/// let mut x = "Hello".to_owned();
6767
/// x.push_str(", World");
6868
/// ```
6969
#[clippy::version = "pre 1.29.0"]

0 commit comments

Comments
 (0)