Skip to content

Commit

Permalink
Fix an outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rzumer committed Feb 7, 2024
1 parent 54b1133 commit e8bcf1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1078,8 +1078,8 @@ impl Instruction {
}

/// Decodes a single instruction from a source, or `None` if one cannot be decoded.
/// This is a thin wrapper around `Instruction::decode()`, which does not require
/// the caller to convert its source to a `Peekable<Bytes<R>>`.
/// This is a thin wrapper around `Instruction::decode_one_inner()`, which does not require
/// the caller to convert its source to a `Peekable<Bytes<R>>` to simplify usage.
pub fn decode_one<R: Read>(source: &mut R) -> Result<Instruction, DecodingState> {
let mut bytes = source.bytes().peekable();

Expand Down

0 comments on commit e8bcf1f

Please sign in to comment.