diff --git a/crates/oxc_data_structures/src/stack/sparse.rs b/crates/oxc_data_structures/src/stack/sparse.rs index 6e3f45f21c485..b09d30637f4ed 100644 --- a/crates/oxc_data_structures/src/stack/sparse.rs +++ b/crates/oxc_data_structures/src/stack/sparse.rs @@ -124,7 +124,7 @@ impl SparseStack { } } - /// Get value of last entry on the stack. + /// Get reference to value of last entry on the stack. #[inline] pub fn last(&self) -> Option<&T> { let has_value = *self.has_values.last(); @@ -139,7 +139,7 @@ impl SparseStack { } } - /// Get value of last entry on the stack. + /// Get mutable reference to value of last entry on the stack. #[inline] pub fn last_mut(&mut self) -> Option<&mut T> { let has_value = *self.has_values.last();