We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
range_plus_one
1 parent e523b12 commit e536bd4Copy full SHA for e536bd4
1 file changed
src/script.rs
@@ -640,7 +640,7 @@ impl<'a> Iterator for Instructions<'a> {
640
self.data = &[];
641
return Some(Err(Error::NonMinimalPush));
642
}
643
- let ret = Some(Ok(Instruction::PushBytes(&self.data[1..n+1])));
+ let ret = Some(Ok(Instruction::PushBytes(&self.data[1..=n])));
644
self.data = &self.data[n + 1..];
645
ret
646
0 commit comments