Skip to content

Commit

Permalink
refactor: remove useless line
Browse files Browse the repository at this point in the history
  • Loading branch information
leogaudin committed Aug 31, 2024
1 parent 1411e33 commit 2eb990f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ex02.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ pub fn gray_code(n: u32) -> u32 {
length += 1;
}

gray |= n >> length;

while length > 0 {
gray <<= 1;

Expand Down

0 comments on commit 2eb990f

Please sign in to comment.