4 ms·
The syntax discriminates between "changing the value where the reference points to" and "changing where the reference points to". The code is doing the former.
by estebank 4y ago
The syntax discriminates between "changing the value where the reference points to" and "changing where the reference points to". The code is doing the former. The second use of * could be made unnecessary if the standard library had an impl Mul<u32> for &mut u32 {}.