Merge pull request #678 from liukun4515/patch-2

fix example in `string-slice.md`
pull/682/head
Sunface 3 years ago committed by GitHub
commit fac2b6cb85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -292,8 +292,7 @@ fn main() {
s.push('r'); s.push('r');
println!("追加字符 push() -> {}", s); println!("追加字符 push() -> {}", s);
s.push_str("ust!") s.push_str("ust!");
;
println!("追加字符串 push_str() -> {}", s); println!("追加字符串 push_str() -> {}", s);
} }
``` ```

Loading…
Cancel
Save