Skip to content

Commit 0cfe24d

Browse files
authored
fix exception types for span (#2653)
1 parent 85f4376 commit 0cfe24d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xml/System/Span`1.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ If `array` is `null`, this constructor returns a `null` `Span<T>`.
121121
122122
]]></format>
123123
</remarks>
124-
<exception cref="T:System.TypeMismatchException">
124+
<exception cref="T:System.ArrayTypeMismatchException">
125125
<paramref name="T" /> is a reference type, and <paramref name="array" /> is not an array of type <paramref name="T" />.</exception>
126126
</Docs>
127127
</Member>
@@ -212,7 +212,7 @@ If `array` is `null`, this constructor returns a `null` `Span<T>`.
212212

213213
<paramref name="start" /> and <paramref name="length" /> exceeds the number of elements in the array.
214214
</exception>
215-
<exception cref="T:System.TypeMismatchException">
215+
<exception cref="T:System.ArrayTypeMismatchException">
216216
<paramref name="T" /> is a reference type, and <paramref name="array" /> is not an array of type <paramref name="T" />.</exception>
217217
</Docs>
218218
</Member>
@@ -1106,4 +1106,4 @@ If `destination` is shorter than the source <xref:System.Span%601>, this method
11061106
</Docs>
11071107
</Member>
11081108
</Members>
1109-
</Type>
1109+
</Type>

0 commit comments

Comments
 (0)