Skip to content

Commit c8150cb

Browse files
author
Tim Hutt
committed
Fix read/write links hopefully!
1 parent 6cefcb0 commit c8150cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/libstd/fs.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use crate::time::SystemTime;
2929
///
3030
/// # Examples
3131
///
32-
/// Creates a new file and write bytes to it (you can also use [`std::fs::write`]):
32+
/// Creates a new file and write bytes to it (you can also use [`write`]):
3333
///
3434
/// ```no_run
3535
/// use std::fs::File;
@@ -42,7 +42,7 @@ use crate::time::SystemTime;
4242
/// }
4343
/// ```
4444
///
45-
/// Read the contents of a file into a [`String`] (you can also use [`std::fs::read`]):
45+
/// Read the contents of a file into a [`String`] (you can also use [`read`]):
4646
///
4747
/// ```no_run
4848
/// use std::fs::File;
@@ -89,6 +89,8 @@ use crate::time::SystemTime;
8989
/// [`Write`]: ../io/trait.Write.html
9090
/// [`BufReader<R>`]: ../io/struct.BufReader.html
9191
/// [`sync_all`]: struct.File.html#method.sync_all
92+
/// [`read`]: fn.read.html
93+
/// [`write`]: fn.write.html
9294
#[stable(feature = "rust1", since = "1.0.0")]
9395
pub struct File {
9496
inner: fs_imp::File,

0 commit comments

Comments
 (0)