Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeisler authored Feb 20, 2024
1 parent 554e887 commit ce05936
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/references/exercise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ce05936

Please sign in to comment.