Skip to content

Commit

Permalink
docs: fix doc string for Decoder::new
Browse files Browse the repository at this point in the history
The docstring from `Decoder::new` seems come originally from the encoder
  • Loading branch information
theHamsta committed Oct 2, 2023
1 parent 418855f commit 1c3323c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pub struct Decoder<R> {
}

impl<R: Read> Decoder<R> {
/// Creates a new encoder which will have its output written to the given
/// output stream. The output stream can be re-acquired by calling
/// Creates a new decoder which reads its input from the given
/// input stream. The input stream can be re-acquired by calling
/// `finish()`
pub fn new(r: R) -> Result<Decoder<R>> {
Ok(Decoder {
Expand Down

0 comments on commit 1c3323c

Please sign in to comment.