File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -595,6 +595,9 @@ pub trait Read {
595
595
/// Ok(())
596
596
/// }
597
597
/// ```
598
+ ///
599
+ /// (See also the [`std::fs::read`] convenience function for reading from a
600
+ /// file.)
598
601
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
599
602
fn read_to_end ( & mut self , buf : & mut Vec < u8 > ) -> Result < usize > {
600
603
read_to_end ( self , buf)
@@ -633,6 +636,9 @@ pub trait Read {
633
636
/// Ok(())
634
637
/// }
635
638
/// ```
639
+ ///
640
+ /// (See also the [`std::fs::read_to_string`] convenience function for
641
+ /// reading from a file.)
636
642
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
637
643
fn read_to_string ( & mut self , buf : & mut String ) -> Result < usize > {
638
644
// Note that we do *not* call `.read_to_end()` here. We are passing
You can’t perform that action at this time.
0 commit comments