Skip to content

Commit b45e5f7

Browse files
authored
Merge pull request #510 from reddaisyy/main
chore: make some documents clearer
2 parents 2661fbb + 609d227 commit b45e5f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/gzdecoder-read.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ fn main() {
1111
println!("{}", decode_reader(bytes).unwrap());
1212
}
1313

14-
// Uncompresses a Gz Encoded vector of bytes and returns a string or error
15-
// Here &[u8] implements Read
14+
// Uncompresses a Gz-encoded vector of bytes and returns a string or error
15+
// Here &[u8] implements the Read trait
1616
fn decode_reader(bytes: Vec<u8>) -> io::Result<String> {
1717
let mut gz = read::GzDecoder::new(&bytes[..]);
1818
let mut s = String::new();

src/zlib/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl<W: Write> ZlibEncoder<W> {
129129
///
130130
/// This will flush the underlying data stream and then return the contained
131131
/// writer if the flush succeeded.
132-
/// The compressed stream will not closed but only flushed. This
132+
/// The compressed stream will not be closed but only flushed. This
133133
/// means that obtained byte array can by extended by another deflated
134134
/// stream. To close the stream add the two bytes 0x3 and 0x0.
135135
///

0 commit comments

Comments
 (0)