Skip to content

Commit

Permalink
Update exercises/practice/spiral-matrix/.meta/example.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Goff <[email protected]>
  • Loading branch information
ccadden and kotp authored Feb 13, 2024
1 parent b214e09 commit e507bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/spiral-matrix/.meta/example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def next_step_invalid?
(@y + @dy).negative? ||
@x + @dx == @size ||
(@x + @dx).negative? ||
!(@matrix[@y + @dy][@x + @dx]).zero?
(@matrix[@y + @dy][@x + @dx]).positive?
end

def matrix_includes_zeroes?
Expand Down

0 comments on commit e507bef

Please sign in to comment.