diff --git a/Recyclable.Collections/RecyclableList.cs b/Recyclable.Collections/RecyclableList.cs index 03a5ae2..cce540b 100644 --- a/Recyclable.Collections/RecyclableList.cs +++ b/Recyclable.Collections/RecyclableList.cs @@ -294,7 +294,7 @@ namespace Recyclable.Collections } _nextItemIndex = itemsSpan.Length; - itemsSpan[..itemsSpan.Length].CopyTo(targetBlockArraySpan); + itemsSpan.CopyTo(targetBlockArraySpan); _longCount = targetCapacity; _lastBlockIndex = targetBlockIndex; } @@ -320,7 +320,7 @@ namespace Recyclable.Collections } _nextItemIndex = itemsSpan.Length; - itemsSpan[..itemsSpan.Length].CopyTo(targetBlockArraySpan); + itemsSpan.CopyTo(targetBlockArraySpan); _longCount = targetCapacity; _lastBlockIndex = targetBlockIndex; }