From 8fe20100e137f10894f734e5f1bf7be27d74c229 Mon Sep 17 00:00:00 2001 From: Aiden Date: Sat, 11 Jun 2022 21:03:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/basic/ownership/ownership.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/basic/ownership/ownership.md b/src/basic/ownership/ownership.md index e520e58d..979daec9 100644 --- a/src/basic/ownership/ownership.md +++ b/src/basic/ownership/ownership.md @@ -280,8 +280,8 @@ fn main() { let x = 5; // x 进入作用域 - makes_copy(x); // x 应该移动函数里, - // 但 i32 是 Copy 的,所以在后面可继续使用 x + makes_copy(x); // x 移动到函数里, + // 因为 i32 是 Copy 的,所以在后面可继续使用 x } // 这里, x 先移出了作用域,然后是 s。但因为 s 的值已被移走, // 所以不会有特殊操作