diff options
| author | Josh Soref <2119212+jsoref@users.noreply.github.com> | 2023-04-18 23:39:02 -0400 |
|---|---|---|
| committer | Josh Soref <2119212+jsoref@users.noreply.github.com> | 2023-04-26 02:11:13 -0400 |
| commit | 1042b2c7ff9fb78d46682a840efe1998a5b084a8 (patch) | |
| tree | bc66ebdb01c153ff63fc2a08b1c8c535545a0e3d | |
| parent | 9cb934600533f6bee22b7396d1ff013b381322a8 (diff) | |
| download | rust-1042b2c7ff9fb78d46682a840efe1998a5b084a8.tar.gz rust-1042b2c7ff9fb78d46682a840efe1998a5b084a8.zip | |
rewrite: long_line_flushed description
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
| -rw-r--r-- | library/std/src/io/buffered/tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/io/buffered/tests.rs b/library/std/src/io/buffered/tests.rs index 4c1b7d57684..99084a74e5c 100644 --- a/library/std/src/io/buffered/tests.rs +++ b/library/std/src/io/buffered/tests.rs @@ -831,9 +831,9 @@ fn partial_line_buffered_after_line_write() { assert_eq!(&writer.get_ref().buffer, b"Line 1\nLine 2\nLine 3"); } -/// Test that, given a partial line that exceeds the length of -/// LineBuffer's buffer (that is, without a trailing newline), that that -/// line is written to the inner writer +/// Test that for calls to LineBuffer::write where the passed bytes do not contain +/// a newline and on their own are greater in length than the internal buffer, the +/// passed bytes are immediately written to the inner writer. #[test] fn long_line_flushed() { let writer = ProgrammableSink::default(); |
