1
Fork 0
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:
asynts 2020-07-27 16:59:49 +02:00 committed by Andreas Kling
parent 8d2dba022e
commit 5fa0fdb219
2 changed files with 8 additions and 8 deletions

View file

@ -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 };