Skip to content

Commit b510093

Browse files
Kixunildr-orlovsky
andcommitted
Fix doc of take_slice_or_kill
Co-authored-by: Dr. Maxim Orlovsky <[email protected]>
1 parent 87c4703 commit b510093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blockdata/script.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ impl<'a> Instructions<'a> {
741741
}
742742

743743
/// 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
744+
/// if the iterator is not long enough [`Error::EarlyEndOfScript`] is returned and the iterator is killed
745745
/// to avoid returning an infinite stream of errors.
746746
fn take_slice_or_kill(&mut self, len: usize) -> Result<&'a [u8], Error> {
747747
if self.data.len() >= len {

0 commit comments

Comments
 (0)