Merge pull request #326 from happyd0ggie/patch-3

Update string-slice.md
pull/329/head
Sunface 3 years ago committed by GitHub
commit 19960f870b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -186,7 +186,7 @@ fn main() {
let mut s = String::from("你好,世界");
// 将字符'!'推入s中
s.push('!');
// 最后s的内容是"hello,world!"
// 最后s的内容是"你好,世界!"
assert_eq!(s,"你好,世界!");
let s1 = String::from("hello,");

Loading…
Cancel
Save