From e6ff754b73a2bd6f6c2755f1a2bb9e477bc4d63d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Habov=C5=A1tiak?= Date: Mon, 14 Mar 2022 21:17:38 +0100 Subject: [PATCH] Fix doc of take_slice_or_kill Co-authored-by: Dr. Maxim Orlovsky --- src/blockdata/script.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockdata/script.rs b/src/blockdata/script.rs index d17df327..39f00312 100644 --- a/src/blockdata/script.rs +++ b/src/blockdata/script.rs @@ -741,7 +741,7 @@ impl<'a> Instructions<'a> { } /// takes `len` bytes long slice from iterator and returns it advancing iterator - /// 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 /// to avoid returning an infinite stream of errors. fn take_slice_or_kill(&mut self, len: usize) -> Result<&'a [u8], Error> { if self.data.len() >= len {