File tree 1 file changed +2
-2
lines changed
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 {
259
259
/// Ok(())
260
260
/// }
261
261
/// ```
262
- #[ stable( feature = "fs_read_write_bytes" , since = "1.27 .0" ) ]
262
+ #[ stable( feature = "fs_read_write_bytes" , since = "1.26 .0" ) ]
263
263
pub fn read < P : AsRef < Path > > ( path : P ) -> io:: Result < Vec < u8 > > {
264
264
let mut file = File :: open ( path) ?;
265
265
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> {
330
330
/// Ok(())
331
331
/// }
332
332
/// ```
333
- #[ stable( feature = "fs_read_write_bytes" , since = "1.27 .0" ) ]
333
+ #[ stable( feature = "fs_read_write_bytes" , since = "1.26 .0" ) ]
334
334
pub fn write < P : AsRef < Path > , C : AsRef < [ u8 ] > > ( path : P , contents : C ) -> io:: Result < ( ) > {
335
335
File :: create ( path) ?. write_all ( contents. as_ref ( ) )
336
336
}
You can’t perform that action at this time.
0 commit comments