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 | |
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".
-rw-r--r-- | de-de/rust-de.html.markdown | 2 | ||||
-rw-r--r-- | fr-fr/rust-fr.html.markdown | 2 | ||||
-rw-r--r-- | it-it/rust-it.html.markdown | 2 | ||||
-rw-r--r-- | rust.html.markdown | 2 | ||||
-rw-r--r-- | zh-cn/rust-cn.html.markdown | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/de-de/rust-de.html.markdown b/de-de/rust-de.html.markdown index 2b1471a8..faa4ec2b 100644 --- a/de-de/rust-de.html.markdown +++ b/de-de/rust-de.html.markdown @@ -319,7 +319,7 @@ fn main() { var = 3; let ref_var: &i32 = &var; - println!("{}", var); // Anders als `box`, `var` kann hier weiter verwendet werden + println!("{}", var); // Anders als `mine`, `var` kann hier weiter verwendet werden println!("{}", *ref_var); // var = 5; // das kompiliert nicht, da `var` ausgeliehen ist // *ref_var = 6; // das kompiliert auch nicht, da `ref_var` eine unveränderliche Referenz ist diff --git a/fr-fr/rust-fr.html.markdown b/fr-fr/rust-fr.html.markdown index 0fa16075..5a1f8268 100644 --- a/fr-fr/rust-fr.html.markdown +++ b/fr-fr/rust-fr.html.markdown @@ -285,7 +285,7 @@ fn main() { var = 3; let ref_var: &i32 = &var; - println!("{}", var); // Contrairement `box`, `var` peut encore être utilisé + println!("{}", var); // Contrairement `mien`, `var` peut encore être utilisé println!("{}", *ref_var); // Var = 5; // Cela ne compile pas parce que `var` est emprunté. // *ref_var = 6; // Ce ne serait pas non plus, parce que `ref_var` est une diff --git a/it-it/rust-it.html.markdown b/it-it/rust-it.html.markdown index 8ef09712..6b379f93 100644 --- a/it-it/rust-it.html.markdown +++ b/it-it/rust-it.html.markdown @@ -288,7 +288,7 @@ fn main() { var = 3; let ref_var: &i32 = &var; - println!("{}", var); // Diversamente da `box`, `var` può ancora essere usato + println!("{}", var); // Diversamente da `mio`, `var` può ancora essere usato println!("{}", *ref_var); // var = 5; // questo non compilerebbe, perché `var` è stato preso in prestito // *ref_var = 6; // neanche questo, perché `ref_var` è un riferimento immutabile 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 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` 是不可变引用 |