summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index bdd5a65..0c81220 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -36,7 +36,7 @@ impl<'a> View<'a> {
}
}
-fn ppm_renderer(data: &[[Pixel; IMG_WIDTH]; IMG_HEIGHT]) -> Result<String, std::io::Error> {
+fn ppm_exporter(data: &[[Pixel; IMG_WIDTH]; IMG_HEIGHT]) -> Result<String, std::io::Error> {
let file_name = "output.ppm";
let mut file = File::create(file_name)?;
// header
@@ -71,7 +71,7 @@ fn main() {
let view = View {
data: &data,
- viewer: ppm_renderer,
+ viewer: ppm_exporter,
};
view.display();
}