@@ -19,10 +19,10 @@ fn copy(into: &mut [u8], from: &[u8], pos: &mut usize) -> usize {
1919
2020/// A gzip streaming encoder
2121///
22- /// This structure exposes a [`BufRead`] interface that will read uncompressed data
23- /// from the underlying reader and expose the compressed version as a [`BufRead`]
24- /// interface.
22+ /// This structure implements a [`Read`] interface. When read from, it reads
23+ /// uncompressed data from the underlying [`BufRead`] and provides the compressed data.
2524///
25+ /// [`Read`]: https://doc.rust-lang.org/std/io/trait.Read.html
2626/// [`BufRead`]: https://doc.rust-lang.org/std/io/trait.BufRead.html
2727///
2828/// # Examples
@@ -165,8 +165,8 @@ impl<R: BufRead + Write> Write for GzEncoder<R> {
165165
166166/// A decoder for a single member of a [gzip file].
167167///
168- /// This structure exposes a [`BufRead `] interface, reading compressed data
169- /// from the underlying reader, and emitting uncompressed data.
168+ /// This structure implements a [`Read `] interface. When read from, it reads
169+ /// compressed data from the underlying [`BufRead`] and provides the uncompressed data.
170170///
171171/// After reading a single member of the gzip data this reader will return
172172/// Ok(0) even if there are more bytes available in the underlying reader.
@@ -178,6 +178,7 @@ impl<R: BufRead + Write> Write for GzEncoder<R> {
178178/// [in the introduction](../index.html#about-multi-member-gzip-files).
179179///
180180/// [gzip file]: https://www.rfc-editor.org/rfc/rfc1952#page-5
181+ /// [`Read`]: https://doc.rust-lang.org/std/io/trait.Read.html
181182/// [`BufRead`]: https://doc.rust-lang.org/std/io/trait.BufRead.html
182183///
183184/// # Examples
@@ -351,8 +352,8 @@ impl<R: BufRead + Write> Write for GzDecoder<R> {
351352
352353/// A gzip streaming decoder that decodes a [gzip file] that may have multiple members.
353354///
354- /// This structure exposes a [`BufRead `] interface that will consume compressed
355- /// data from the underlying reader and emit uncompressed data.
355+ /// This structure implements a [`Read `] interface. When read from, it reads
356+ /// compressed data from the underlying [`BufRead`] and provides the uncompressed data.
356357///
357358/// A gzip file consists of a series of *members* concatenated one after another.
358359/// MultiGzDecoder decodes all members from the data and only returns Ok(0) when the
@@ -362,6 +363,7 @@ impl<R: BufRead + Write> Write for GzDecoder<R> {
362363/// [in the introduction](../index.html#about-multi-member-gzip-files).
363364///
364365/// [gzip file]: https://www.rfc-editor.org/rfc/rfc1952#page-5
366+ /// [`Read`]: https://doc.rust-lang.org/std/io/trait.Read.html
365367/// [`BufRead`]: https://doc.rust-lang.org/std/io/trait.BufRead.html
366368///
367369/// # Examples
0 commit comments