File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
1616fn decode_reader ( bytes : Vec < u8 > ) -> io:: Result < String > {
1717 let mut gz = read:: GzDecoder :: new ( & bytes[ ..] ) ;
1818 let mut s = String :: new ( ) ;
Original file line number Diff line number Diff 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 ///
You can’t perform that action at this time.
0 commit comments