From b2a96851b8efc64fe5319cf653f8be1bb7ec04cf Mon Sep 17 00:00:00 2001 From: Y Date: Wed, 26 Jan 2022 11:24:37 +0800 Subject: [PATCH] Update string-slice.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit s的内容应该是"你好,世界!" --- book/contents/basic/compound-type/string-slice.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/contents/basic/compound-type/string-slice.md b/book/contents/basic/compound-type/string-slice.md index 45e0125b..ad0474ce 100644 --- a/book/contents/basic/compound-type/string-slice.md +++ b/book/contents/basic/compound-type/string-slice.md @@ -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,");