Skip to content

Commit 1042b2c

Browse files
committed
rewrite: long_line_flushed description
Signed-off-by: Josh Soref <[email protected]>
1 parent 9cb9346 commit 1042b2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/io/buffered/tests.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -831,9 +831,9 @@ fn partial_line_buffered_after_line_write() {
831831
assert_eq!(&writer.get_ref().buffer, b"Line 1\nLine 2\nLine 3");
832832
}
833833

834-
/// Test that, given a partial line that exceeds the length of
835-
/// LineBuffer's buffer (that is, without a trailing newline), that that
836-
/// line is written to the inner writer
834+
/// Test that for calls to LineBuffer::write where the passed bytes do not contain
835+
/// a newline and on their own are greater in length than the internal buffer, the
836+
/// passed bytes are immediately written to the inner writer.
837837
#[test]
838838
fn long_line_flushed() {
839839
let writer = ProgrammableSink::default();

0 commit comments

Comments
 (0)