Skip to content

Commit 509fe8c

Browse files
authored
fix: reinstate inclusive ranges
Fixes #39
1 parent 9a1f1bb commit 509fe8c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ch2/ch2-mandelbrot/src/main.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ fn render_mandelbrot(escape_vals: Vec<Vec<usize>>) {
5252
let mut line = String::with_capacity(row.len());
5353
for column in row {
5454
let val = match column {
55-
0..2 => ' ',
56-
2..5 => '.',
57-
5..10 => '•',
55+
0..=2 => ' ',
56+
3..=5 => '.',
57+
6..=10 => '•',
5858
11..30 => '*',
59-
30..100 => '+',
60-
100..200 => 'x',
61-
200..400 => '$',
62-
400..=700 => '#',
59+
31..=100 => '+',
60+
101..=200 => 'x',
61+
201..=400 => '$',
62+
401..=700 => '#',
6363
_ => '%',
6464
};
6565

0 commit comments

Comments
 (0)