We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87c4703 commit b510093Copy full SHA for b510093
src/blockdata/script.rs
@@ -741,7 +741,7 @@ impl<'a> Instructions<'a> {
741
}
742
743
/// takes `len` bytes long slice from iterator and returns it advancing iterator
744
- /// if the iterator is not long enough `None` is returned and the iterator is killed
+ /// if the iterator is not long enough [`Error::EarlyEndOfScript`] is returned and the iterator is killed
745
/// to avoid returning an infinite stream of errors.
746
fn take_slice_or_kill(&mut self, len: usize) -> Result<&'a [u8], Error> {
747
if self.data.len() >= len {
0 commit comments