mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
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:
@@ -60,6 +60,12 @@
|
||||
/// let x = "Hello".to_owned();
|
||||
/// x + ", World";
|
||||
/// ```
|
||||
///
|
||||
/// Use instead:
|
||||
/// ```rust
|
||||
/// let mut x = "Hello".to_owned();
|
||||
/// x.push_str(", World");
|
||||
/// ```
|
||||
#[clippy::version = "pre 1.29.0"]
|
||||
pub STRING_ADD,
|
||||
restriction,
|
||||
|
||||
Reference in New Issue
Block a user