@@ -962,7 +962,7 @@ impl<'a, W: Write> Write for LineWriterShim<'a, W> {
962
962
// Flush existing content to prepare for our write. We have to do this
963
963
// before attempting to write `buf` in order to maintain consistency;
964
964
// if we add `buf` to the buffer then try to flush it all at once,
965
- // we're obligated to return Ok(), which would mean supressing any
965
+ // we're obligated to return Ok(), which would mean suppressing any
966
966
// errors that occur during flush.
967
967
self . buffer . flush_buf ( ) ?;
968
968
@@ -1142,7 +1142,7 @@ impl<'a, W: Write> Write for LineWriterShim<'a, W> {
1142
1142
self . inner_mut ( ) . write_all ( lines) ?;
1143
1143
} else {
1144
1144
// If there is any buffered data, we add the incoming lines
1145
- // to that buffer before flushing, which saves us at lease
1145
+ // to that buffer before flushing, which saves us at least
1146
1146
// one write call. We can't really do this with `write`,
1147
1147
// since we can't do this *and* not suppress errors *and*
1148
1148
// report a consistent state to the caller in a return
@@ -2024,7 +2024,7 @@ mod tests {
2024
2024
}
2025
2025
2026
2026
/// Test that, in cases where vectored writing is not enabled, the
2027
- /// LineWriter uses the normal `write` call, which more-corectly handles
2027
+ /// LineWriter uses the normal `write` call, which more-correctly handles
2028
2028
/// partial lines
2029
2029
#[ test]
2030
2030
fn line_vectored_ignored ( ) {
@@ -2160,7 +2160,7 @@ mod tests {
2160
2160
}
2161
2161
2162
2162
/// Test that, if a write returns Ok(0) after a successful pre-flush, this
2163
- /// is propogated as Ok(0)
2163
+ /// is propagated as Ok(0)
2164
2164
#[ test]
2165
2165
fn line_buffer_write0_normal ( ) {
2166
2166
let writer = ProgrammableSink {
@@ -2298,7 +2298,7 @@ mod tests {
2298
2298
}
2299
2299
2300
2300
/// Test that a normal, formatted writeln only results in a single write
2301
- /// call to the underlying writer. A naive implementaton of
2301
+ /// call to the underlying writer. A naive implementation of
2302
2302
/// LineWriter::write_all results in two writes: one of the buffered data,
2303
2303
/// and another of the final substring in the formatted set
2304
2304
#[ test]
0 commit comments