mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-08 16:07:43 +00:00
Fix read/write links hopefully!
This commit is contained in:
parent
6cefcb0b54
commit
c8150cb159
@ -29,7 +29,7 @@ use crate::time::SystemTime;
|
|||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Creates a new file and write bytes to it (you can also use [`std::fs::write`]):
|
/// Creates a new file and write bytes to it (you can also use [`write`]):
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// use std::fs::File;
|
/// use std::fs::File;
|
||||||
@ -42,7 +42,7 @@ use crate::time::SystemTime;
|
|||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// Read the contents of a file into a [`String`] (you can also use [`std::fs::read`]):
|
/// Read the contents of a file into a [`String`] (you can also use [`read`]):
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// use std::fs::File;
|
/// use std::fs::File;
|
||||||
@ -89,6 +89,8 @@ use crate::time::SystemTime;
|
|||||||
/// [`Write`]: ../io/trait.Write.html
|
/// [`Write`]: ../io/trait.Write.html
|
||||||
/// [`BufReader<R>`]: ../io/struct.BufReader.html
|
/// [`BufReader<R>`]: ../io/struct.BufReader.html
|
||||||
/// [`sync_all`]: struct.File.html#method.sync_all
|
/// [`sync_all`]: struct.File.html#method.sync_all
|
||||||
|
/// [`read`]: fn.read.html
|
||||||
|
/// [`write`]: fn.write.html
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub struct File {
|
pub struct File {
|
||||||
inner: fs_imp::File,
|
inner: fs_imp::File,
|
||||||
|
Loading…
Reference in New Issue
Block a user