From 12fa7dd7031d8d7fc3e1fd2aa86727a8d10189b3 Mon Sep 17 00:00:00 2001 From: Sander Hautvast Date: Mon, 24 Jan 2022 22:37:34 +0100 Subject: [PATCH] updated example in readme --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6021cd9..51581de 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,11 @@ https://observablehq.com/@tmcw/octree-color-quantization inspired by to https://github.com/objectProfessionals/movieMaps +``` fn test_big_image() -> Result<(), ImageError> { let src: RgbaImage = image::open("some_image.jpg").unwrap().into_rgba8(); - - let out = quantize(&src, 256); - out.save_with_format("output.jpg", image::ImageFormat::Jpeg)?; + let dest = quantize(&src, 256); + dest.save_with_format("output.jpg", image::ImageFormat::Jpeg)?; Ok(()) -} \ No newline at end of file +} +``` \ No newline at end of file