tour_of_rust
tour_of_rust copied to clipboard
Update chapter_5.yaml | Fix Dereferencing code in Vietnamese
The code in Chapter 5 is currently not executable, so I have created this PR to fix that.
Old code:
fn main() {
let mut foo = 42;
let f = &mut foo;
let bar = *f; // nhận một bản sao của quyền sở hữu
New code
fn main() {
let mut foo = 42;
let f = &mut foo;
let bar = *f; // nhận một bản sao của quyền sở hữu
println!("{}", bar);
println!("{}", foo);
}