Skip to content

Commit 59710fb

Browse files
committed
Clarified comment in partial_multiline_buffering test
1 parent 38017a3 commit 59710fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/io/buffered.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2246,9 +2246,9 @@ mod tests {
22462246
// When content is written, LineWriter will try to write blocks A, B,
22472247
// C, and D. Only block A will succeed. Under the old behavior, LineWriter
22482248
// would then try to buffer B, C and D, but because its capacity is 10,
2249-
// it will only be able to buffer B and C. We don't want it to buffer
2250-
// partial lines if it can avoid it, so the correct behavior is to
2251-
// only buffer block B (with its newline).
2249+
// it will only be able to buffer B and C. We don't want to buffer
2250+
// partial lines concurrent with whole lines, so the correct behavior
2251+
// is to buffer only block B (out to the newline)
22522252
assert_eq!(writer.write(content).unwrap(), 11);
22532253
assert_eq!(writer.get_ref().buffer, *b"AAAAA");
22542254

0 commit comments

Comments
 (0)