diff options
| author | bors <bors@rust-lang.org> | 2017-01-21 16:51:22 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-01-21 16:51:22 +0000 |
| commit | 8ba01a19360d9fae28486c4bdead7e551a6b5c82 (patch) | |
| tree | 04da5f25ac3037aafde703ad8098bd0aa76dfb14 /src/libstd | |
| parent | c2a0d1ba112d94e48d5292bde272de7904c66fff (diff) | |
| parent | 780371107dd0bc1a880d14f1f4ebe9c5bfe627fd (diff) | |
| download | rust-8ba01a19360d9fae28486c4bdead7e551a6b5c82.tar.gz rust-8ba01a19360d9fae28486c4bdead7e551a6b5c82.zip | |
Auto merge of #39203 - ranma42:doc_metadata, r=BurntSushi
Document that `Metadata` can be obtained from `symlink_metadata` When retrieving the information about a syslink (specifically, when invoking `Metadata::is_symlink`) you generally want the `syslink_metadata`. It would be natural to point at both options to retrieve a `Metadata` value, as they are both appropriate (for different use cases).
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/fs.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index 06402cc0e8e..9cff787ced3 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -90,11 +90,13 @@ pub struct File { /// Metadata information about a file. /// -/// This structure is returned from the [`metadata`] function or method and -/// represents known metadata about a file such as its permissions, size, -/// modification times, etc. +/// This structure is returned from the [`metadata`] or +/// [`symlink_metadata`] function or method and represents known +/// metadata about a file such as its permissions, size, modification +/// times, etc. /// /// [`metadata`]: fn.metadata.html +/// [`symlink_metadata`]: fn.symlink_metadata.html #[stable(feature = "rust1", since = "1.0.0")] #[derive(Clone)] pub struct Metadata(fs_imp::FileAttr); |
