File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -595,6 +595,11 @@ 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.)
601
+ ///
602
+ /// [`std::fs::read`]: ../fs/fn.read.html
598
603
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
599
604
fn read_to_end ( & mut self , buf : & mut Vec < u8 > ) -> Result < usize > {
600
605
read_to_end ( self , buf)
@@ -633,6 +638,11 @@ pub trait Read {
633
638
/// Ok(())
634
639
/// }
635
640
/// ```
641
+ ///
642
+ /// (See also the [`std::fs::read_to_string`] convenience function for
643
+ /// reading from a file.)
644
+ ///
645
+ /// [`std::fs::read_to_string`]: ../fs/fn.read_to_string.html
636
646
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
637
647
fn read_to_string ( & mut self , buf : & mut String ) -> Result < usize > {
638
648
// 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