X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/5733ee975f1c72c27a4c2530f502786e777a8cc7..934a02211cd612a968195ded4bcc92e175dc0aff:/src/part04.rs diff --git a/src/part04.rs b/src/part04.rs index cb101fe..83eb87d 100644 --- a/src/part04.rs +++ b/src/part04.rs @@ -49,7 +49,7 @@ fn ownership_demo() { //@ vector. Hence, when `vec_min` finishes, the entire vector is deleted. That's of course not what //@ we wanted! Can't we somehow give `vec_min` access to the vector, while retaining ownership of it? //@ -//@ Rust calls this *a reference* the vector, and it considers references as *borrowing* ownership. This +//@ Rust calls this *a reference* to the vector, and it considers references as *borrowing* ownership. This //@ works a bit like borrowing does in the real world: If your friend borrows a book from you, your friend //@ can have it and work on it (and you can't!) as long as the book is still borrowed. Your friend could //@ even lend the book to someone else. Eventually however, your friend has to give the book back to you,