diff --git a/src/param/smoothing.rs b/src/param/smoothing.rs index 9982d55d..6f392e86 100644 --- a/src/param/smoothing.rs +++ b/src/param/smoothing.rs @@ -141,6 +141,10 @@ impl Smoother { /// allocate memory for the block smoothing. /// /// Returns a `None` value if the block length exceed's the allocated capacity. + /// + /// # Panics + /// + /// Panics if this function is called again while another block value slice is still alive. #[inline] pub fn next_block(&self, block: &Block) -> Option> { let mut block_values = self.block_values.borrow_mut(); @@ -238,6 +242,10 @@ impl Smoother { /// allocate memory for the block smoothing. /// /// Returns a `None` value if the block length exceed's the allocated capacity. + /// + /// # Panics + /// + /// Panics if this function is called again while another block value slice is still alive. #[inline] pub fn next_block(&self, block: &Block) -> Option> { let mut block_values = self.block_values.borrow_mut();