From 1d818fdb0201c5e7baaa1de6b05f38905c55008f Mon Sep 17 00:00:00 2001 From: Budo Zindovic Date: Tue, 25 Apr 2023 05:06:59 +0200 Subject: [PATCH] Fix the variable type Fix the type of variable type in the doc string. --- src/part04.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.30.2