Skip to content

Commit

Permalink
fix: reinstate inclusive ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
timClicks authored Aug 9, 2021
1 parent 9a1f1bb commit 509fe8c
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,14 +52,14 @@ 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 => '•',
0..=2 => ' ',
3..=5 => '.',
6..=10 => '•',
11..30 => '*',
30..100 => '+',
100..200 => 'x',
200..400 => '$',
400..=700 => '#',
31..=100 => '+',
101..=200 => 'x',
201..=400 => '$',
401..=700 => '#',
_ => '%',
};

Expand Down

0 comments on commit 509fe8c

Please sign in to comment.