Add more links in the fs module's documentation.

This commit is contained in:
Dan Gohman
2019-10-23 05:46:06 -07:00
committed by Jakub Konka
parent 951456d79b
commit 056e1d8cc0
3 changed files with 11 additions and 4 deletions

View File

@@ -3,9 +3,12 @@
/// This corresponds to [`std::fs::OpenOptions`].
///
/// Note that this `OpenOptions` has no `open` method. To open a file with
/// an `OptionOptions`, pass it to `Dir::open_file_with`.
/// an `OptionOptions`, you must first obtain a [`Dir`] containing the file, and
/// then call [`Dir::open_file_with`].
///
/// [`std::fs::OpenOptions`]: https://doc.rust-lang.org/std/fs/struct.OpenOptions.html
/// [`Dir`]: struct.Dir.html
/// [`Dir::open_file_with`]: struct.Dir.html#method.open_file_with
pub struct OpenOptions {
pub(crate) read: bool,
pub(crate) write: bool,