Skip to content

Commit

Permalink
Update src/consensus/encode.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Tobin C. Harding <me@tobin.cc>
  • Loading branch information
dpc and tcharding committed May 31, 2022
1 parent 888a1ec commit af2c62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/consensus/encode.rs
Expand Up @@ -651,7 +651,7 @@ struct ReadBytesFromFiniteReaderOpts {

/// Read `len` bytes from reader, where `len` could potentially be malicious
///
/// This function relies on `reader` being bound in amount of data
/// This function relies on reader being bound in amount of data
/// it returns for OOM protection. See [`Decodable::consensus_decode_from_finite_reader`].
#[inline]
fn read_bytes_from_finite_reader<D: io::Read>(mut d: D, mut opts: ReadBytesFromFiniteReaderOpts) -> Result<Vec<u8>, Error> {
Expand Down

0 comments on commit af2c62f

Please sign in to comment.