Skip to content

Commit 0aec325

Browse files
committed
Update comments
1 parent 235738c commit 0aec325

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Ramstack.Structures/Collections/ArrayViewExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static ArrayView<T> AsView<T>(this T[]? value) =>
2222
/// Creates a new <see cref="ArrayView{T}"/> over a portion of the target array from a specified position to the end of the array.
2323
/// </summary>
2424
/// <param name="value">The target array.</param>
25-
/// <param name="index">The index at which to begin this slice.</param>
25+
/// <param name="index">The index at which to begin the array view.</param>
2626
/// <returns>
2727
/// An <see cref="ArrayView{T}"/> representing the array.
2828
/// </returns>
@@ -34,14 +34,14 @@ public static ArrayView<T> AsView<T>(this T[]? value, int index) =>
3434
/// Creates a new <see cref="ArrayView{T}"/> over a portion of the target array from a specified position for a specified number of elements.
3535
/// </summary>
3636
/// <param name="value">The target array.</param>
37-
/// <param name="index">The index at which to begin this slice.</param>
38-
/// <param name="length">The desired length for the slice.</param>
37+
/// <param name="index">The index at which to begin the array view.</param>
38+
/// <param name="count">The number of items in the array view.</param>
3939
/// <returns>
4040
/// An <see cref="ArrayView{T}"/> representing the array.
4141
/// </returns>
4242
[MethodImpl(MethodImplOptions.AggressiveInlining)]
43-
public static ArrayView<T> AsView<T>(this T[]? value, int index, int length) =>
44-
new(value ?? [], index, length);
43+
public static ArrayView<T> AsView<T>(this T[]? value, int index, int count) =>
44+
new(value ?? [], index, count);
4545

4646
/// <summary>
4747
/// Finds the index of the first occurrence of a specified value in this instance.

0 commit comments

Comments
 (0)