From d635db2a275db1e5c63c822bfa61cdc61f9682ae Mon Sep 17 00:00:00 2001 From: caleb Date: Mon, 12 Jun 2023 09:14:00 +0300 Subject: [PATCH] tests/jpeg: Swap arguments Signed-off-by: caleb --- zune-jpeg/src/lib.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zune-jpeg/src/lib.rs b/zune-jpeg/src/lib.rs index ac077619..5c84aa60 100644 --- a/zune-jpeg/src/lib.rs +++ b/zune-jpeg/src/lib.rs @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2023. + * + * This software is free software; + * + * You can redistribute it or modify it under terms of the MIT, Apache License or Zlib license + */ + //!This crate provides a library for decoding valid //! ITU-T Rec. T.851 (09/2005) ITU-T T.81 (JPEG-1) or JPEG images. //! @@ -39,7 +47,7 @@ //! //! let mut options = DecoderOptions::default().jpeg_set_out_colorspace(ColorSpace::RGBA); //! -//! let mut decoder = JpegDecoder::new_with_options(options,&[]); +//! let mut decoder = JpegDecoder::new_with_options(&[],options); //! let pixels = decoder.decode().unwrap(); //! ``` //!