diff options
author | Adam <adam@adambard.com> | 2016-10-21 15:35:09 -0700 |
---|---|---|
committer | Adam <adam@adambard.com> | 2016-10-21 15:35:09 -0700 |
commit | 620e5d20402be961d27ce6cc6a007204c81391d4 (patch) | |
tree | e33427b1aa82c11a8e974ccd8a02b789de4c9737 /zh-cn/rust-cn.html.markdown | |
parent | de376b4357e79fc847e4c1ae2717946fe05d3bef (diff) | |
parent | 0659107a78bddd722df816daa01ee622fb4508d1 (diff) |
Merge branch 'master' of github.com:adambard/learnxinyminutes-docs
Diffstat (limited to 'zh-cn/rust-cn.html.markdown')
-rw-r--r-- | zh-cn/rust-cn.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zh-cn/rust-cn.html.markdown b/zh-cn/rust-cn.html.markdown index 17a897df..5d3fc693 100644 --- a/zh-cn/rust-cn.html.markdown +++ b/zh-cn/rust-cn.html.markdown @@ -268,7 +268,7 @@ fn main() { var = 3; let ref_var: &i32 = &var; - println!("{}", var); //不像 `box`, `var` 还可以继续使用 + println!("{}", var); //不像 `mine`, `var` 还可以继续使用 println!("{}", *ref_var); // var = 5; // 编译报错,因为 `var` 被借用了 // *ref_var = 6; // 编译报错,因为 `ref_var` 是不可变引用 |