mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:47:45 +00:00
AK: Rename Span::subspan() to Span::slice().
This commit is contained in:
parent
8d2dba022e
commit
5fa0fdb219
2 changed files with 8 additions and 8 deletions
|
@ -144,7 +144,7 @@ public:
|
|||
|
||||
ALWAYS_INLINE bool is_empty() const { return this->m_size == 0; }
|
||||
|
||||
ALWAYS_INLINE Span<T> subspan(size_t start, size_t size) const
|
||||
ALWAYS_INLINE Span slice(size_t start, size_t size) const
|
||||
{
|
||||
ASSERT(start + size <= this->m_size);
|
||||
return { this->m_values + start, size };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue