diff options
author | Rob Wu <rob@robwu.nl> | 2016-09-27 16:42:40 +0200 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2016-09-27 16:42:40 +0200 |
commit | 970aff0dadeeed4362881f8088e81f4d703000a7 (patch) | |
tree | 3cea9a483d88b5e0fbfb1c8b8c2fb8b83f7da886 /zh-cn | |
parent | 8fa91ffcb2b026ae02ae15d5f444fdf7af7b6e25 (diff) |
Fix comment in Rust docs: box -> mine (#2365)
The "box" is referring to the Box variable a few lines back, but that is
called "mine", not "box".
Diffstat (limited to 'zh-cn')
-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` 是不可变引用 |