We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54b1133 commit e8bcf1fCopy full SHA for e8bcf1f
src/instruction.rs
@@ -1078,8 +1078,8 @@ impl Instruction {
1078
}
1079
1080
/// 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>>`.
+ /// 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.
1083
pub fn decode_one<R: Read>(source: &mut R) -> Result<Instruction, DecodingState> {
1084
let mut bytes = source.bytes().peekable();
1085
0 commit comments