From c07ee4d0d3145dfbc2865d67d43b146d3a2a3a64 Mon Sep 17 00:00:00 2001 From: focksor surooi Date: Fri, 16 Dec 2022 15:48:32 +0800 Subject: [PATCH] Update ch04-01-what-is-ownership.md (#107) Co-authored-by: YangQi <2419731931@qq.com> --- src/ch04-01-what-is-ownership.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch04-01-what-is-ownership.md b/src/ch04-01-what-is-ownership.md index 4970663..77468f3 100644 --- a/src/ch04-01-what-is-ownership.md +++ b/src/ch04-01-what-is-ownership.md @@ -71,7 +71,7 @@ let s = "hello"; let s = String::from("hello"); ``` -这两个冒号(`::`)是运算符,允许将特定的 `from` 函数置于 `String` 类型的命名空间(namespace)下,而不需要使用类似 `string_from` 这样的名字。在第 5 章的[“方法语法”(“Method Syntax”)][method-syntax]部分会着重讲解这个语法而且在第 7 章的[“路径用于引用模块树中的项”][paths-module-tree]中会讲到模块的命名空间。 +双冒号(`::`)运算符允许我们将特定的 `from` 函数置于 `String` 类型的命名空间(namespace)下,而不需要使用类似 `string_from` 这样的名字。我们将在第 5 章的[“方法语法”(“Method Syntax”)][method-syntax]以及第 7 章的[“路径用于引用模块树中的项”][paths-module-tree]中讨论模块的命名空间时,再详细说明此语法。 **可以** 修改此类字符串 :