Skip to content

Commit e8bcf1f

Browse files
committed
Fix an outdated comment
1 parent 54b1133 commit e8bcf1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/instruction.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1078,8 +1078,8 @@ impl Instruction {
10781078
}
10791079

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

0 commit comments

Comments
 (0)