Skip to content

Commit 1385ee8

Browse files
eluchsingerRick Anderson
authored andcommitted
Update pipelines.md (#15132)
1 parent 4604d95 commit 1385ee8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/standard/io/pipelines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ To fix the preceding problems, the following changes are required:
4949

5050
* Buffer the incoming data until a new line is found.
5151
* Parse all the lines returned in the buffer.
52-
* It's possible that the line is bigger than 1 KB (1024 bytes). The code needs to resize the input buffer a complete line is found.
52+
* It's possible that the line is bigger than 1 KB (1024 bytes). The code needs to resize the input buffer until the delimiter is found in order to fit the complete line inside the buffer.
5353

5454
* If the buffer is resized, more buffer copies are made as longer lines appear in the input.
5555
* To reduce wasted space, compact the buffer used for reading lines.
5656

5757
* Consider using buffer pooling to avoid allocating memory repeatedly.
58-
* The following code address some of these problems:
58+
* The following code addresses some of these problems:
5959

6060
[!code-csharp[](~/samples/snippets/csharp/pipelines/ProcessLinesAsync.cs?name=snippet)]
6161

0 commit comments

Comments
 (0)