Review fixes + doc-features
This commit is contained in:
@@ -1007,17 +1007,18 @@ impl Metadata {
|
||||
self.file_type().is_file()
|
||||
}
|
||||
|
||||
/// Returns `true` if this metadata is for a symbolic link file.
|
||||
/// Returns `true` if this metadata is for a symbolic link.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```no_run
|
||||
/// #![feature(is_symlink)]
|
||||
/// use std::fs;
|
||||
/// use std::path::Path;
|
||||
/// use std::os::unix::fs::symlink;
|
||||
///
|
||||
/// fn main() -> std::io::Result<()> {
|
||||
/// let link_path = Path::new("/link");
|
||||
/// let link_path = Path::new("link");
|
||||
/// symlink("/origin_does_not_exists/", link_path)?;
|
||||
///
|
||||
/// let metadata = fs::symlink_metadata(link_path)?;
|
||||
|
||||
Reference in New Issue
Block a user