Skip to content

Commit

Permalink
Fixed linting issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jusexton committed Nov 23, 2024
1 parent 85c13a3 commit 557cb16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/leetcode/rotate_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ pub fn rotate_the_box(mut box_: Vec<Vec<char>>) -> Vec<Vec<char>> {

let mut rotated_box = vec![vec!['.'; box_.len()]; box_[0].len()];
for i in 0..box_.len() {
for j in 0..box_[0].len() {
(0..box_[0].len()).for_each(|j| {
rotated_box[j][box_.len() - 1 - i] = box_[i][j];
}
});
}
rotated_box
}
Expand Down

0 comments on commit 557cb16

Please sign in to comment.