From 62c4db28ab3efa3152bf4296457cb33900262893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Catanzariti?= Date: Sat, 6 Apr 2024 11:59:54 +0200 Subject: [PATCH] Fix typo --- src/Dahomey.Cbor/Serialization/CborReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dahomey.Cbor/Serialization/CborReader.cs b/src/Dahomey.Cbor/Serialization/CborReader.cs index c4d3777..2e686b9 100644 --- a/src/Dahomey.Cbor/Serialization/CborReader.cs +++ b/src/Dahomey.Cbor/Serialization/CborReader.cs @@ -786,7 +786,7 @@ public ReadOnlySpan ReadDataItem() int size = _currentPos - currentDataItemPos; - return _buffer.Slice(currentDataItemPos, size).CopyTo(buffer); + return _buffer.Slice(currentDataItemPos, size); } [MethodImpl(MethodImplOptions.AggressiveInlining)]