summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosyid Haryadi <rosyid_haryadi@protonmail.com>2025-02-26 10:42:08 +0700
committerRosyid Haryadi <rosyid_haryadi@protonmail.com>2025-02-26 10:42:08 +0700
commit7f321d993b7ad9335de0b12e248a477fa333a9c6 (patch)
tree1b4b277e132c3dbcc224f0366523a2a692fcf784
parent61d1245f5e87baf09085285cb3ee37e241568beb (diff)
upd: wording
-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();
}