File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -486,6 +486,10 @@ impl<W: Write> BufWriter<W> {
486
486
///
487
487
/// The buffer is written out before returning the writer.
488
488
///
489
+ /// # Errors
490
+ ///
491
+ /// An `Err` will be returned if an error occurs while flushing the buffer.
492
+ ///
489
493
/// # Examples
490
494
///
491
495
/// ```no_run
@@ -650,6 +654,9 @@ impl<W> fmt::Display for IntoInnerError<W> {
650
654
/// completed, rather than the entire buffer at once. Enter `LineWriter`. It
651
655
/// does exactly that.
652
656
///
657
+ /// Like [`BufWriter`], a `LineWriter`’s buffer will also be flushed when the
658
+ /// `LineWriter` goes out of scope or when its internal buffer is full.
659
+ ///
653
660
/// [bufwriter]: struct.BufWriter.html
654
661
///
655
662
/// If there's still a partial line in the buffer when the `LineWriter` is
@@ -785,6 +792,10 @@ impl<W: Write> LineWriter<W> {
785
792
///
786
793
/// The internal buffer is written out before returning the writer.
787
794
///
795
+ // # Errors
796
+ ///
797
+ /// An `Err` will be returned if an error occurs while flushing the buffer.
798
+ ///
788
799
/// # Examples
789
800
///
790
801
/// ```
You can’t perform that action at this time.
0 commit comments