From 1bd9373556eba9108ad3116c36855a3f2888bd00 Mon Sep 17 00:00:00 2001 From: bioinformatist Date: Sat, 28 Oct 2017 20:34:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A4=E5=A4=84=E5=8E=9F=E6=9C=AC=E7=BF=BB?= =?UTF-8?q?=E8=AF=91=E4=B8=8D=E5=A4=9F=E7=81=B5=E6=B4=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 1d44922..2308d06 100644 --- a/src/ch04-01-what-is-ownership.md +++ b/src/ch04-01-what-is-ownership.md @@ -248,7 +248,7 @@ Rust 有一个叫做 `Copy` trait 的特殊注解,可以用在类似整型这 ### 所有权与函数 -将值传递给函数在语义上与给变量赋值相似。向函数传递值可能会移动或者复制,就像赋值语句一样。示例 4-7 是一个带有变量何时进入和离开作用域标注的例子: +将值传递给函数在语义上与给变量赋值相似。向函数传递值可能会移动或者复制,就像赋值语句一样。示例 4-7 是一个展示变量何时进入和离开作用域的例子: 文件名: src/main.rs