Skip to content

Commit 5ae71a3

Browse files
authored
ReadOnlySpan created from a null array does not return a null ReadOnlySpan (#10611) (#11948)
1 parent 6465abd commit 5ae71a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System/ReadOnlySpan`1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ A `ReadOnlySpan<T>` instance is often used to reference the elements of an array
179179
<param name="array">The array from which to create the <see cref="T:System.ReadOnlySpan`1" />.</param>
180180
<summary>Creates a new <see cref="T:System.ReadOnlySpan`1" /> over the entirety of a specified array.</summary>
181181
<remarks>
182-
<format type="text/markdown"><![CDATA[If the array is null, this constructor returns a null `ReadOnlySpan<T>`.]]></format>
182+
<format type="text/markdown"><![CDATA[If the `array` is null, this constructor returns a `default` `ReadOnlySpan<T>`.]]></format>
183183
</remarks>
184184
</Docs>
185185
</Member>
@@ -290,7 +290,7 @@ A `ReadOnlySpan<T>` instance is often used to reference the elements of an array
290290
291291
### Remarks
292292
293-
This method returns `default` when `array` is `null`.
293+
If the `array` is null, this constructor returns a `default` `ReadOnlySpan<T>`.
294294
295295
]]></format>
296296
</remarks>

0 commit comments

Comments
 (0)