STRING_ADD example
This commit is contained in:
@@ -63,7 +63,7 @@ declare_clippy_lint! {
|
|||||||
///
|
///
|
||||||
/// Use instead:
|
/// Use instead:
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// let x = "Hello".to_owned();
|
/// let mut x = "Hello".to_owned();
|
||||||
/// x.push_str(", World");
|
/// x.push_str(", World");
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "pre 1.29.0"]
|
#[clippy::version = "pre 1.29.0"]
|
||||||
|
|||||||
Reference in New Issue
Block a user