Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/gzdecoder-read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ fn main() {
println!("{}", decode_reader(bytes).unwrap());
}

// Uncompresses a Gz Encoded vector of bytes and returns a string or error
// Here &[u8] implements Read
// Uncompresses a Gz-encoded vector of bytes and returns a string or error
// Here &[u8] implements the Read trait
fn decode_reader(bytes: Vec<u8>) -> io::Result<String> {
let mut gz = read::GzDecoder::new(&bytes[..]);
let mut s = String::new();
Expand Down
2 changes: 1 addition & 1 deletion src/zlib/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl<W: Write> ZlibEncoder<W> {
///
/// This will flush the underlying data stream and then return the contained
/// writer if the flush succeeded.
/// The compressed stream will not closed but only flushed. This
/// The compressed stream will not be closed but only flushed. This
/// means that obtained byte array can by extended by another deflated
/// stream. To close the stream add the two bytes 0x3 and 0x0.
///
Expand Down