diff --git a/book/contents/basic/compound-type/string-slice.md b/book/contents/basic/compound-type/string-slice.md index 0bf8efab..0b60b76c 100644 --- a/book/contents/basic/compound-type/string-slice.md +++ b/book/contents/basic/compound-type/string-slice.md @@ -167,7 +167,7 @@ Rust在语言级别,只有一种字符串类型:`str`,它通常是以引 fn main() { // 创建一个空String let mut s = String::new(); - // 将&str类型的"hello,world"添加到中 + // 将&str类型的"hello,world"添加到s中 s.push_str("hello,world"); // 将字符'!'推入s中 s.push('!');