Skip to content

Commit 8a861c6

Browse files
committed
Formatting
1 parent cf36567 commit 8a861c6

1 file changed

Lines changed: 18 additions & 9 deletions

File tree

Ramstack.Structures/Collections/ReadOnlyArray`1.cs

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ public ReadOnlyArray(T item1, T item2, T item3, T item4) =>
9999
public ReadOnlyArray(ReadOnlySpan<T> items)
100100
{
101101
//
102-
// Avoid address exposure in cases where the destination local does not actually end up escaping in any way.
102+
// Avoid address exposure in cases where the destination local
103+
// does not actually end up escaping in any way.
103104
// https://github.com/dotnet/runtime/pull/102808
104105
//
105106

@@ -130,7 +131,8 @@ public Enumerator GetEnumerator()
130131
/// </summary>
131132
/// <param name="start">The index at which to begin the slice.</param>
132133
/// <returns>
133-
/// A readonly span that consists of all elements of the current array from <paramref name="start"/> to the end.
134+
/// A readonly span that consists of all elements of the current array
135+
/// from <paramref name="start"/> to the end.
134136
/// </returns>
135137
[MethodImpl(MethodImplOptions.AggressiveInlining)]
136138
public ReadOnlyArray<T> Slice(int start)
@@ -149,7 +151,8 @@ public ReadOnlyArray<T> Slice(int start)
149151
/// <param name="start">The index at which to begin the slice.</param>
150152
/// <param name="length">The desired length for the slice.</param>
151153
/// <returns>
152-
/// A readonly span that consists of <paramref name="length"/> elements from the current array starting at <paramref name="start"/>.
154+
/// A readonly span that consists of <paramref name="length"/> elements
155+
/// from the current array starting at <paramref name="start"/>.
153156
/// </returns>
154157
[MethodImpl(MethodImplOptions.AggressiveInlining)]
155158
public ReadOnlyArray<T> Slice(int start, int length)
@@ -185,7 +188,8 @@ public ReadOnlySpan<T> AsSpan() =>
185188
new(Inner ?? []);
186189

187190
/// <summary>
188-
/// Creates a new read-only span over a portion of the current array starting at a specified position to the end of the array.
191+
/// Creates a new read-only span over a portion of the current array
192+
/// starting at a specified position to the end of the array.
189193
/// </summary>
190194
/// <param name="start">The index at which to begin the span.</param>
191195
/// <returns>
@@ -196,7 +200,8 @@ public ReadOnlySpan<T> AsSpan(int start) =>
196200
AsSpan().Slice(start);
197201

198202
/// <summary>
199-
/// Creates a new read-only span over a portion of the current array starting at a specified position for a specified length.
203+
/// Creates a new read-only span over a portion of the current array
204+
/// starting at a specified position for a specified length.
200205
/// </summary>
201206
/// <param name="start">The index at which to begin the span.</param>
202207
/// <param name="length">The number of items in the span.</param>
@@ -216,7 +221,8 @@ public ArrayView<T> AsView() =>
216221
new(Inner ?? []);
217222

218223
/// <summary>
219-
/// Creates an <see cref="ArrayView{T}"/> over the current array starting at a specified position to the end of the array.
224+
/// Creates an <see cref="ArrayView{T}"/> over the current array
225+
/// starting at a specified position to the end of the array.
220226
/// </summary>
221227
/// <param name="index">The index at which to begin the array view.</param>
222228
/// <returns>
@@ -227,7 +233,8 @@ public ArrayView<T> AsView(int index) =>
227233
AsView().Slice(index);
228234

229235
/// <summary>
230-
/// Creates an <see cref="ArrayView{T}"/> over the current array starting at a specified position for a specified length.
236+
/// Creates an <see cref="ArrayView{T}"/> over the current array
237+
/// starting at a specified position for a specified length.
231238
/// </summary>
232239
/// <param name="index">The index at which to begin the array view.</param>
233240
/// <param name="count">The number of items in the array view.</param>
@@ -250,7 +257,8 @@ public ReadOnlyMemory<T> AsMemory() =>
250257
/// Returns a reference to the element of the <see cref="ReadOnlyArray{T}"/> at index zero.
251258
/// </summary>
252259
/// <returns>
253-
/// A reference to the element of the <see cref="ReadOnlyArray{T}"/> at index zero, or <see langword="null"/> if <see cref="IsDefault"/> is true.
260+
/// A reference to the element of the <see cref="ReadOnlyArray{T}"/> at index zero,
261+
/// or <see langword="null"/> if <see cref="IsDefault"/> is true.
254262
/// </returns>
255263
public ref readonly T GetPinnableReference() =>
256264
ref MemoryMarshal.GetArrayDataReference(Inner!);
@@ -497,7 +505,8 @@ internal Enumerator(T[] array)
497505
/// Advances the enumerator to the next element of the collection.
498506
/// </summary>
499507
/// <returns>
500-
/// <see langword="true"/> if the enumerator was successfully advanced to the next element; otherwise, <see langword="false"/>.
508+
/// <see langword="true"/> if the enumerator was successfully advanced to the next element;
509+
/// otherwise, <see langword="false"/>.
501510
/// </returns>
502511
[MethodImpl(MethodImplOptions.AggressiveInlining)]
503512
public bool MoveNext() =>

0 commit comments

Comments
 (0)