Skip to content

Commit 59e5088

Browse files
committed
Use target-typed expression
1 parent 7c34be0 commit 59e5088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DotNext/OneDimensionalArray.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public static T[] Slice<T>(this T[] input, long startIndex, long length)
301301
public static ArraySegment<T> Slice<T>(this T[] input, Range range)
302302
{
303303
var (start, length) = range.GetOffsetAndLength(input.Length);
304-
return new ArraySegment<T>(input, start, length);
304+
return new(input, start, length);
305305
}
306306

307307
/// <summary>

0 commit comments

Comments
 (0)