Skip to content

Commit

Permalink
Fix read/write links hopefully!
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Hutt committed Oct 16, 2019
1 parent 6cefcb0 commit c8150cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libstd/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use crate::time::SystemTime;
///
/// # 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
/// use std::fs::File;
Expand All @@ -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
/// use std::fs::File;
Expand Down Expand Up @@ -89,6 +89,8 @@ use crate::time::SystemTime;
/// [`Write`]: ../io/trait.Write.html
/// [`BufReader<R>`]: ../io/struct.BufReader.html
/// [`sync_all`]: struct.File.html#method.sync_all
/// [`read`]: fn.read.html
/// [`write`]: fn.write.html
#[stable(feature = "rust1", since = "1.0.0")]
pub struct File {
inner: fs_imp::File,
Expand Down

0 comments on commit c8150cb

Please sign in to comment.