Skip to content

Commit 49a5d06

Browse files
Update StreamReader.xml
Fixes dotnet#9798; Wrong documentation on `Read(Span<char>)` for `IOException`.
1 parent aa3011b commit 49a5d06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: xml/System.IO/StreamReader.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,7 @@ Following a call to <xref:System.IO.StreamReader.Close%2A>, any operations on th
18901890
<summary>Reads the characters from the current stream into a span.</summary>
18911891
<returns>The number of characters that have been read, or 0 if at the end of the stream and no data was read. The number will be less than or equal to the <paramref name="buffer" /> length, depending on whether the data is available within the stream.</returns>
18921892
<remarks>To be added.</remarks>
1893-
<exception cref="T:System.IO.IOException">The number of characters read from the stream is larger than the <paramref name="buffer" /> length.</exception>
1893+
<exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
18941894
<exception cref="T:System.ArgumentNullException">
18951895
<paramref name="buffer" /> is <see langword="null" />.</exception>
18961896
</Docs>
@@ -1986,7 +1986,7 @@ Following a call to <xref:System.IO.StreamReader.Close%2A>, any operations on th
19861986
<paramref name="buffer" /> is <see langword="null" />.</exception>
19871987
<exception cref="T:System.ArgumentOutOfRangeException">
19881988
<paramref name="index" /> or <paramref name="count" /> is negative.</exception>
1989-
<exception cref="T:System.IO.IOException">An I/O error occurs, such as the stream is closed.</exception>
1989+
<exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
19901990
<related type="Article" href="/dotnet/standard/io/">File and Stream I/O</related>
19911991
<related type="Article" href="/dotnet/standard/io/how-to-read-text-from-a-file">How to: Read Text from a File</related>
19921992
<related type="Article" href="/dotnet/standard/io/how-to-write-text-to-a-file">How to: Write Text to a File</related>
@@ -2178,7 +2178,7 @@ Following a call to <xref:System.IO.StreamReader.Close%2A>, any operations on th
21782178
<exception cref="T:System.ArgumentNullException">
21792179
<paramref name="buffer" /> is <see langword="null" />.</exception>
21802180
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.IO.StreamReader" /> is closed.</exception>
2181-
<exception cref="T:System.IO.IOException">An I/O error occurred.</exception>
2181+
<exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
21822182
</Docs>
21832183
</Member>
21842184
<Member MemberName="ReadBlock">
@@ -2250,7 +2250,7 @@ Following a call to <xref:System.IO.StreamReader.Close%2A>, any operations on th
22502250
<exception cref="T:System.ArgumentOutOfRangeException">
22512251
<paramref name="index" /> or <paramref name="count" /> is negative.</exception>
22522252
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.IO.StreamReader" /> is closed.</exception>
2253-
<exception cref="T:System.IO.IOException">An I/O error occurred.</exception>
2253+
<exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
22542254
</Docs>
22552255
</Member>
22562256
<Member MemberName="ReadBlockAsync">

0 commit comments

Comments
 (0)