summaryrefslogtreecommitdiffhomepage
path: root/rust.html.markdown
diff options
context:
space:
mode:
authorRob Wu <rob@robwu.nl>2016-09-27 16:42:40 +0200
committerven <vendethiel@hotmail.fr>2016-09-27 16:42:40 +0200
commit970aff0dadeeed4362881f8088e81f4d703000a7 (patch)
tree3cea9a483d88b5e0fbfb1c8b8c2fb8b83f7da886 /rust.html.markdown
parent8fa91ffcb2b026ae02ae15d5f444fdf7af7b6e25 (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 'rust.html.markdown')
-rw-r--r--rust.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust.html.markdown b/rust.html.markdown
index f1b62ef4..6b75fa87 100644
--- a/rust.html.markdown
+++ b/rust.html.markdown
@@ -286,7 +286,7 @@ fn main() {
var = 3;
let ref_var: &i32 = &var;
- println!("{}", var); // Unlike `box`, `var` can still be used
+ println!("{}", var); // Unlike `mine`, `var` can still be used
println!("{}", *ref_var);
// var = 5; // this would not compile because `var` is borrowed
// *ref_var = 6; // this would not either, because `ref_var` is an immutable reference