From b7af797dd73b1433c9c19e23123a7c7669869593 Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Sat, 8 Apr 2023 01:15:27 +0200 Subject: [PATCH] Tiny cleanup --- Recyclable.Collections/RecyclableList.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Recyclable.Collections/RecyclableList.cs b/Recyclable.Collections/RecyclableList.cs index 2d8442c..f66a73d 100644 --- a/Recyclable.Collections/RecyclableList.cs +++ b/Recyclable.Collections/RecyclableList.cs @@ -69,6 +69,7 @@ namespace Recyclable.Collections : Math.Min(nextItemIndex, blockSize - targetItemIndex); Array.Copy(memoryBlocks[sourceBlockIndex], sourceItemIndex, memoryBlocks[targetBlockIndex], targetItemIndex, toCopy); + // We didn't have enough room in the target array block. There are still items in the source array block to copy. if (sourceItemIndex + toCopy < blockSize) {