diff options
author | pommicket <pommicket@gmail.com> | 2023-09-04 18:46:27 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-09-04 18:46:27 -0400 |
commit | 26befe536c56d0e8ff47d07bdc1d64086fdc0394 (patch) | |
tree | 9fe96174d6f82371de6e1763a6205f5cdf974c83 /examples | |
parent | 7f7c4845e0ad01b229f30769708fad5fe7f72e1e (diff) |
adler feature, etc.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/alloc_correct.rs | 2 | ||||
-rw-r--r-- | examples/basic.rs (renamed from examples/very_basic.rs) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/alloc_correct.rs b/examples/alloc_correct.rs index 6711a1c..7be3a2c 100644 --- a/examples/alloc_correct.rs +++ b/examples/alloc_correct.rs @@ -4,7 +4,7 @@ fn main() { println!("need {} bytes of memory", header.required_bytes()); let mut buffer = vec![0; header.required_bytes()]; let image = tiny_png::read_png(&mut png, Some(&header), &mut buffer).expect("bad PNG"); - println!("{}x{} image", image.width(), image.height()); + println!("{}×{} image", image.width(), image.height()); let pixels = image.pixels(); println!( "top-left pixel is #{:02x}{:02x}{:02x}", diff --git a/examples/very_basic.rs b/examples/basic.rs index 33043b6..90b476a 100644 --- a/examples/very_basic.rs +++ b/examples/basic.rs @@ -2,7 +2,7 @@ fn main() { let mut my_buffer = vec![0; 1 << 20]; // hope this is big enough! let mut png = &include_bytes!("image.png")[..]; let image = tiny_png::read_png(&mut png, None, &mut my_buffer).expect("bad PNG"); - println!("{}x{} image", image.width(), image.height()); + println!("{}×{} image", image.width(), image.height()); let pixels = image.pixels(); println!( "top-left pixel is #{:02x}{:02x}{:02x}", |