Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/oxc_data_structures/src/stack/sparse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl<T> SparseStack<T> {
}
}

/// 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();
Expand All @@ -139,7 +139,7 @@ impl<T> SparseStack<T> {
}
}

/// 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();
Expand Down
Loading