From ce059367d178a9e521668b18880e004132b6ef08 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Tue, 20 Feb 2024 17:16:33 +0100 Subject: [PATCH] Apply suggestions from code review --- src/references/exercise.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/references/exercise.rs b/src/references/exercise.rs index 9033013fcfe..122959a25bc 100644 --- a/src/references/exercise.rs +++ b/src/references/exercise.rs @@ -25,7 +25,6 @@ fn magnitude(vector: &[f64; 3]) -> f64 { /// Change the magnitude of the vector to 1.0 without changing its direction. fn normalize(vector: &mut [f64; 3]) { let mag = magnitude(vector); - for item in vector { *item /= mag; }