From: Ralf Jung Date: Wed, 26 Apr 2023 10:21:56 +0000 (+0200) Subject: Merge pull request #38 from bzindovic/part04-variable-type-patch X-Git-Url: https://git.ralfj.de/rust-101.git/commitdiff_plain/1bb09d0f6792fb9790b47f2652bac3643b90f22e?hp=4cac8138d63e49c60d101bee79b9e60644b3de0a Merge pull request #38 from bzindovic/part04-variable-type-patch Fix the variable type --- diff --git a/src/part04.rs b/src/part04.rs index 21654cd..2381ff4 100644 --- a/src/part04.rs +++ b/src/part04.rs @@ -106,7 +106,7 @@ fn shared_ref_demo() { //@ their official name. //@ As an example, consider a function which increments every element of a vector by 1. -//@ The type `&mut Vec` is the type of mutable references to `vec`. Because the reference +//@ The type `&mut Vec` is the type of mutable references to `Vec`. Because the reference //@ is mutable, we can use a mutable iterator, providing mutable references to the elements. fn vec_inc(v: &mut Vec) { for e in v.iter_mut() {