Correct since attribute for feature

This commit is contained in:
Maxwase 2021-12-11 13:47:20 +03:00
parent 4a66a704b2
commit 8fafb77af9
2 changed files with 2 additions and 2 deletions

View file

@ -1058,7 +1058,7 @@ impl Metadata {
/// }
/// ```
#[must_use]
#[stable(feature = "is_symlink", since = "1.57.0")]
#[stable(feature = "is_symlink", since = "1.58.0")]
pub fn is_symlink(&self) -> bool {
self.file_type().is_symlink()
}

View file

@ -2817,7 +2817,7 @@ impl Path {
/// check errors, call [`fs::symlink_metadata`] and handle its [`Result`]. Then call
/// [`fs::Metadata::is_symlink`] if it was [`Ok`].
#[must_use]
#[stable(feature = "is_symlink", since = "1.57.0")]
#[stable(feature = "is_symlink", since = "1.58.0")]
pub fn is_symlink(&self) -> bool {
fs::symlink_metadata(self).map(|m| m.is_symlink()).unwrap_or(false)
}