tracks/rust/exercises/spiral-matrix/example.rs in trackler-2.2.1.179 vs tracks/rust/exercises/spiral-matrix/example.rs in trackler-2.2.1.180

- old
+ new

@@ -2,10 +2,9 @@ let mut matrix: Vec<Vec<usize>> = vec![vec![0; size]; size]; let num_concentric_squares: usize = (size as f64 / 2.0).ceil() as usize; let mut counter: usize = 1; let mut sidelen = size; for i in 0..num_concentric_squares { - for j in 0..sidelen { matrix[i][i + j] = counter; counter += 1; }