From b5b84f3e2ac3277f8d009d3e43e3032e6e892cee Mon Sep 17 00:00:00 2001 From: spuradage Date: Wed, 22 Oct 2025 15:40:39 +0800 Subject: [PATCH] chore: minor improvement for docs Signed-off-by: spuradage --- src/read.rs | 2 +- src/write.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/read.rs b/src/read.rs index 7e59b809..48a98337 100644 --- a/src/read.rs +++ b/src/read.rs @@ -20,7 +20,7 @@ pub struct BzDecoder { impl BzEncoder { /// Create a new compression stream which will compress at the given level - /// to read compress output to the give output stream. + /// to read compressed output to the given output stream. pub fn new(r: R, level: Compression) -> Self { Self { inner: bufread::BzEncoder::new(BufReader::new(r), level), diff --git a/src/write.rs b/src/write.rs index d58efc8b..2403c4be 100644 --- a/src/write.rs +++ b/src/write.rs @@ -27,7 +27,7 @@ pub struct BzDecoder { impl BzEncoder { /// Create a new compression stream which will compress at the given level - /// to write compress output to the give output stream. + /// to write compressed output to the given output stream. pub fn new(obj: W, level: Compression) -> Self { Self { data: Compress::new(level, 30),