Skip to content

Commit 9c2e7b8

Browse files
authored
Update ReadOnlySpan1.xml and Span1.xml to specify zero-based index values (#9972)
1 parent 439b532 commit 9c2e7b8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

xml/System/ReadOnlySpan`1.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ A `ReadOnlySpan<T>` instance is often used to reference the elements of an array
279279
</Parameters>
280280
<Docs>
281281
<param name="array">The array from which to create the <see cref="T:System.ReadOnlySpan`1" />.</param>
282-
<param name="start">The index of the first element to include.</param>
282+
<param name="start">The zero-based index of the first element to include.</param>
283283
<param name="length">The number of elements to include.</param>
284284
<summary>Creates a new <see cref="T:System.ReadOnlySpan`1" /> that includes a specified number of elements of an array starting at a specified index.</summary>
285285
<remarks>
@@ -1026,7 +1026,7 @@ The following example demonstrates creating an integer array, pinning it, and wr
10261026
<Parameter Name="start" Type="System.Int32" />
10271027
</Parameters>
10281028
<Docs>
1029-
<param name="start">The index at which to begin the slice.</param>
1029+
<param name="start">The zero-based index at which to begin the slice.</param>
10301030
<summary>Forms a slice out of the current read-only span that begins at a specified index.</summary>
10311031
<returns>A span that consists of all elements of the current span from <paramref name="start" /> to the end of the span.</returns>
10321032
<remarks>To be added.</remarks>
@@ -1068,7 +1068,7 @@ The following example demonstrates creating an integer array, pinning it, and wr
10681068
<Parameter Name="length" Type="System.Int32" />
10691069
</Parameters>
10701070
<Docs>
1071-
<param name="start">The index at which to begin this slice.</param>
1071+
<param name="start">The zero-based index at which to begin this slice.</param>
10721072
<param name="length">The desired length for the slice.</param>
10731073
<summary>Forms a slice out of the current read-only span starting at a specified index for a specified length.</summary>
10741074
<returns>A read-only span that consists of <paramref name="length" /> elements from the current span starting at <paramref name="start" />.</returns>

xml/System/Span`1.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ If `array` is `null`, this constructor returns a `null` `Span<T>`.
269269
</Parameters>
270270
<Docs>
271271
<param name="array">The source array.</param>
272-
<param name="start">The index of the first element to include in the new <see cref="T:System.Span`1" />.</param>
272+
<param name="start">The zero-based index of the first element to include in the new <see cref="T:System.Span`1" />.</param>
273273
<param name="length">The number of elements to include in the new <see cref="T:System.Span`1" />. </param>
274274
<summary>Creates a new <see cref="T:System.Span`1" /> object that includes a specified number of elements of an array starting at a specified index.</summary>
275275
<remarks>
@@ -1096,7 +1096,7 @@ Two <xref:System.Span%601> objects are not equal if they have different lengths
10961096
<Parameter Name="start" Type="System.Int32" />
10971097
</Parameters>
10981098
<Docs>
1099-
<param name="start">The index at which to begin the slice.</param>
1099+
<param name="start">The zero-based index at which to begin the slice.</param>
11001100
<summary>Forms a slice out of the current span that begins at a specified index.</summary>
11011101
<returns>A span that consists of all elements of the current span from <paramref name="start" /> to the end of the span.</returns>
11021102
<remarks>To be added.</remarks>
@@ -1138,7 +1138,7 @@ Two <xref:System.Span%601> objects are not equal if they have different lengths
11381138
<Parameter Name="length" Type="System.Int32" />
11391139
</Parameters>
11401140
<Docs>
1141-
<param name="start">The index at which to begin this slice.</param>
1141+
<param name="start">The zero-based index at which to begin this slice.</param>
11421142
<param name="length">The desired length for the slice.</param>
11431143
<summary>Forms a slice out of the current span starting at a specified index for a specified length.</summary>
11441144
<returns>A span that consists of <paramref name="length" /> elements from the current span starting at <paramref name="start" />.</returns>

0 commit comments

Comments
 (0)