From 4343fff9c85d2fd60853ba50c61d6422bbd32641 Mon Sep 17 00:00:00 2001 From: tanliwei Date: Thu, 3 Feb 2022 08:52:59 +0800 Subject: [PATCH] fix a typo fix a typo --- 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 23539db..2eb5856 100644 --- a/src/ch08-02-strings.md +++ b/src/ch08-02-strings.md @@ -41,7 +41,7 @@ let s = "initial contents".to_string(); 这些代码会创建包含 `initial contents` 的字符串。 -也可以使用 `String::from` 函数来从字符串字面值创建 `String`。示例 8-13 中的代码代码等同于使用 `to_string`。 +也可以使用 `String::from` 函数来从字符串字面值创建 `String`。示例 8-13 中的代码等同于使用 `to_string`。 ```rust let s = String::from("initial contents");