From d027cbbbbe0b28dd7ebd9347892a5060499081a2 Mon Sep 17 00:00:00 2001 From: Michael_Liu Date: Sun, 16 Jun 2024 13:58:06 +0800 Subject: [PATCH] Update ch08-02-strings.md (#161) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 链接 -> 连接 --- src/ch08-02-strings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch08-02-strings.md b/src/ch08-02-strings.md index f847e217..29737472 100644 --- a/src/ch08-02-strings.md +++ b/src/ch08-02-strings.md @@ -142,7 +142,7 @@ let s3 = String::from("toe"); let s = s1 + "-" + &s2 + "-" + &s3; ``` -这时 `s` 的内容会是 `tic-tac-toe`。在有这么多 `+` 和 `"` 字符的情况下,很难理解具体发生了什么。对于更为复杂的字符串链接,可以使用 `format!` 宏: +这时 `s` 的内容会是 `tic-tac-toe`。在有这么多 `+` 和 `"` 字符的情况下,很难理解具体发生了什么。对于更为复杂的字符串连接,可以使用 `format!` 宏: ```rust let s1 = String::from("tic");