mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-27 16:40:03 +02:00
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".
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user