Skip to content

Commit 985cb17

Browse files
committed
Formatting
1 parent 4ba078e commit 985cb17

5 files changed

Lines changed: 162 additions & 84 deletions

File tree

Ramstack.Structures/Collections/ArrayView`1.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,9 @@ public void CopyTo(Span<T> destination) =>
235235
AsSpan().CopyTo(destination);
236236

237237
/// <summary>
238-
/// Attempts to copy the contents of this <see cref="ArrayView{T}"/> into a destination <see cref="Span{T}"/>
239-
/// and returns a value to indicate whether the operation succeeded.
238+
/// Attempts to copy the contents of this <see cref="ArrayView{T}"/>
239+
/// into a destination <see cref="Span{T}"/> and returns a value to indicate
240+
/// whether the operation succeeded.
240241
/// </summary>
241242
/// <param name="destination">The span to copy items into.</param>
242243
/// <returns>
@@ -318,7 +319,8 @@ public static implicit operator ArrayView<T>(ArraySegment<T> segment) =>
318319
new(segment.Array!, segment.Offset, segment.Count, dummy: 0);
319320

320321
/// <summary>
321-
/// Returns a string representation of the current instance's state, intended for debugging purposes.
322+
/// Returns a string representation of the current instance's state,
323+
/// intended for debugging purposes.
322324
/// </summary>
323325
/// <returns>
324326
/// A string containing information about the current instance.

Ramstack.Structures/Collections/ReadOnlyArrayExtensions.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,22 @@ public static ReadOnlyArray<T> ToReadOnlyArray<T>([InstantHandle] this IEnumerab
6868
/// <param name="array">The <see cref="ReadOnlyArray{T}"/> instance.</param>
6969
/// <param name="value">The object to locate in array.</param>
7070
/// <returns>
71-
/// The zero-based index of the first occurrence of <paramref name="value"/> in the <paramref name="array"/>, if found; otherwise, <c>-1</c>.
71+
/// The zero-based index of the first occurrence of <paramref name="value"/>
72+
/// in the <paramref name="array"/>, if found; otherwise, <c>-1</c>.
7273
/// </returns>
7374
public static int IndexOf<T>(this ReadOnlyArray<T> array, T value) =>
7475
Array.IndexOf(array.Inner!, value);
7576

7677
/// <summary>
77-
/// Searches for the specified object and returns the index of the last occurrence within the entire <see cref="ReadOnlyArray{T}"/>.
78+
/// Searches for the specified object and returns the index
79+
/// of the last occurrence within the entire <see cref="ReadOnlyArray{T}"/>.
7880
/// </summary>
7981
/// <typeparam name="T">The type of element in the array.</typeparam>
8082
/// <param name="array">The <see cref="ReadOnlyArray{T}"/> instance.</param>
8183
/// <param name="value">The object to locate in array.</param>
8284
/// <returns>
83-
/// The zero-based index of the last occurrence of <paramref name="value"/> in the <paramref name="array"/>, if found; otherwise, <c>-1</c>.
85+
/// The zero-based index of the last occurrence of <paramref name="value"/>
86+
/// in the <paramref name="array"/>, if found; otherwise, <c>-1</c>.
8487
/// </returns>
8588
public static int LastIndexOf<T>(this ReadOnlyArray<T> array, T value) =>
8689
Array.LastIndexOf(array.Inner!, value);

0 commit comments

Comments
 (0)