From f680a20d6e0f4425790ee17746da9c2790e42643 Mon Sep 17 00:00:00 2001 From: hkohko Date: Sun, 21 Apr 2024 17:39:35 +0700 Subject: [PATCH] docs: added more clarifications, fixed wording --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 7c6a6a3..3653432 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -45,7 +45,7 @@ //! let mut vec_of_bytes = Vec::new(); //! let mut list_of_names = Vec::new(); //! -//! // push the filenames and read bytes into a vector each. +//! // push the filenames and read bytes into a separate vector. //! for file in std::fs::read_dir(image_dir_path.clone())? { //! let filepath = file?.path(); //! if filepath.is_file() { @@ -63,6 +63,8 @@ //! // this temporary directory is here for doctest purposes, //! // but you will create your own directory. //! let tempdir = TempDir::new("compressed")?; +//! +//! // zip list_of_names vector with this iterator. //! for zipped in Parallel::from_vec(vec_of_bytes) //! .with_quality(50) //! .with_device(4)