Skip to content

Commit

Permalink
fix: remove overlapping ranges (fixes rust-in-action#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
timClicks committed Aug 8, 2021
1 parent e8895f0 commit b5bb2d1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ch2/ch2-mandelbrot/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ fn render_mandelbrot(escape_vals: Vec<Vec<usize>>) {
let mut line = String::with_capacity(row.len());
for column in row {
let val = match column {
0..=2 => ' ',
2..=5 => '.',
5..=10 => '•',
11..=30 => '*',
30..=100 => '+',
100..=200 => 'x',
200..=400 => '$',
0..2 => ' ',
2..5 => '.',
5..10 => '•',
11..30 => '*',
30..100 => '+',
100..200 => 'x',
200..400 => '$',
400..=700 => '#',
_ => '%',
};
Expand Down

0 comments on commit b5bb2d1

Please sign in to comment.