tour_of_rust icon indicating copy to clipboard operation
tour_of_rust copied to clipboard

Update chapter_5.yaml | Fix Dereferencing code in Vietnamese

Open tranphuquy19 opened this issue 4 months ago • 0 comments

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);
}

tranphuquy19 avatar Feb 18 '24 19:02 tranphuquy19