From 49a5d0629a1dbf890754d24379d12b6decb3567c Mon Sep 17 00:00:00 2001 From: Cole Tobin Date: Thu, 18 Apr 2024 08:08:36 -0400 Subject: [PATCH] Update StreamReader.xml Fixes #9798; Wrong documentation on `Read(Span)` for `IOException`. --- xml/System.IO/StreamReader.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xml/System.IO/StreamReader.xml b/xml/System.IO/StreamReader.xml index 993fb1a479a..b3295275558 100644 --- a/xml/System.IO/StreamReader.xml +++ b/xml/System.IO/StreamReader.xml @@ -1890,7 +1890,7 @@ Following a call to , any operations on th Reads the characters from the current stream into a span. 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 length, depending on whether the data is available within the stream. To be added. - The number of characters read from the stream is larger than the length. + An I/O error occurs. is . @@ -1986,7 +1986,7 @@ Following a call to , any operations on th is . or is negative. - An I/O error occurs, such as the stream is closed. + An I/O error occurs. File and Stream I/O How to: Read Text from a File How to: Write Text to a File @@ -2178,7 +2178,7 @@ Following a call to , any operations on th is . The is closed. - An I/O error occurred. + An I/O error occurs. @@ -2250,7 +2250,7 @@ Following a call to , any operations on th or is negative. The is closed. - An I/O error occurred. + An I/O error occurs.