File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ fn initial_buffer_size(file: &File) -> usize {
259259/// Ok(())
260260/// }
261261/// ```
262- #[ stable( feature = "fs_read_write_bytes" , since = "1.27 .0" ) ]
262+ #[ stable( feature = "fs_read_write_bytes" , since = "1.26 .0" ) ]
263263pub fn read < P : AsRef < Path > > ( path : P ) -> io:: Result < Vec < u8 > > {
264264 let mut file = File :: open ( path) ?;
265265 let mut bytes = Vec :: with_capacity ( initial_buffer_size ( & file) ) ;
@@ -330,7 +330,7 @@ pub fn read_string<P: AsRef<Path>>(path: P) -> io::Result<String> {
330330/// Ok(())
331331/// }
332332/// ```
333- #[ stable( feature = "fs_read_write_bytes" , since = "1.27 .0" ) ]
333+ #[ stable( feature = "fs_read_write_bytes" , since = "1.26 .0" ) ]
334334pub fn write < P : AsRef < Path > , C : AsRef < [ u8 ] > > ( path : P , contents : C ) -> io:: Result < ( ) > {
335335 File :: create ( path) ?. write_all ( contents. as_ref ( ) )
336336}
You can’t perform that action at this time.
0 commit comments