File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2246,9 +2246,9 @@ mod tests {
2246
2246
// When content is written, LineWriter will try to write blocks A, B,
2247
2247
// C, and D. Only block A will succeed. Under the old behavior, LineWriter
2248
2248
// 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)
2252
2252
assert_eq ! ( writer. write( content) . unwrap( ) , 11 ) ;
2253
2253
assert_eq ! ( writer. get_ref( ) . buffer, * b"AAAAA" ) ;
2254
2254
You can’t perform that action at this time.
0 commit comments