Skip to content

Commit ad63b60

Browse files
committed
chore: minor improvement for docs
Signed-off-by: spuradage <[email protected]>
1 parent eebf6e4 commit ad63b60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub struct BzDecoder<R> {
2020

2121
impl<R: Read> BzEncoder<R> {
2222
/// Create a new compression stream which will compress at the given level
23-
/// to read compress output to the give output stream.
23+
/// to write compressed output to the given output stream.
2424
pub fn new(r: R, level: Compression) -> Self {
2525
Self {
2626
inner: bufread::BzEncoder::new(BufReader::new(r), level),

src/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct BzDecoder<W: Write> {
2727

2828
impl<W: Write> BzEncoder<W> {
2929
/// Create a new compression stream which will compress at the given level
30-
/// to write compress output to the give output stream.
30+
/// to write compressed output to the given output stream.
3131
pub fn new(obj: W, level: Compression) -> Self {
3232
Self {
3333
data: Compress::new(level, 30),

0 commit comments

Comments
 (0)