Auto merge of #9054 - alex-semenyuk:string_add_example, r=giraffate
STRING_ADD example changelog: none STRING_ADD example, how it should be
This commit is contained in:
commit
6b762ee330
@ -60,6 +60,12 @@ declare_clippy_lint! {
|
|||||||
/// let x = "Hello".to_owned();
|
/// let x = "Hello".to_owned();
|
||||||
/// x + ", World";
|
/// x + ", World";
|
||||||
/// ```
|
/// ```
|
||||||
|
///
|
||||||
|
/// Use instead:
|
||||||
|
/// ```rust
|
||||||
|
/// let mut x = "Hello".to_owned();
|
||||||
|
/// x.push_str(", World");
|
||||||
|
/// ```
|
||||||
#[clippy::version = "pre 1.29.0"]
|
#[clippy::version = "pre 1.29.0"]
|
||||||
pub STRING_ADD,
|
pub STRING_ADD,
|
||||||
restriction,
|
restriction,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user