Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rust/de] [rust/en] [rust/es] [rust/fr] [rust/cn] Fix comment in Rust docs: box -> mine #2365

Merged
merged 1 commit into from Sep 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion de-de/rust-de.html.markdown
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion fr-fr/rust-fr.html.markdown
Expand Up @@ -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é
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is not a typo, that is the name of the variable at line 267.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ugh. i really did a bad job of proofreading that one :-(.

    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
Expand Down
2 changes: 1 addition & 1 deletion it-it/rust-it.html.markdown
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rust.html.markdown
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion zh-cn/rust-cn.html.markdown
Expand Up @@ -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` 是不可变引用
Expand Down