Skip to content

Commit 1a1c691

Browse files
committed
Merge branch 'single-threaded' of github.com:ProgrammingRust/mandelbrot into single-threaded
2 parents 1ffdc93 + d76606c commit 1a1c691

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ use image::ColorType;
121121

122122
/// Write the buffer `pixels`, whose dimensions are given by `bounds`, to the
123123
/// file named `filename`.
124-
fn write_bitmap(filename: &str, pixels: &[u8], bounds: (usize, usize))
124+
fn write_image(filename: &str, pixels: &[u8], bounds: (usize, usize))
125125
-> Result<()>
126126
{
127127
let output = try!(File::create(filename));
@@ -160,5 +160,5 @@ fn main() {
160160
let mut pixels = vec![0; bounds.0 * bounds.1];
161161
render(&mut pixels[..], bounds, upper_left, lower_right);
162162

163-
write_bitmap(&args[1], &pixels[..], bounds).expect("error writing PNG file");
163+
write_image(&args[1], &pixels[..], bounds).expect("error writing PNG file");
164164
}

0 commit comments

Comments
 (0)