Skip to content

Commit 8fafb77

Browse files
committed
Correct since attribute for feature
1 parent 4a66a70 commit 8fafb77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/std/src/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ impl Metadata {
10581058
/// }
10591059
/// ```
10601060
#[must_use]
1061-
#[stable(feature = "is_symlink", since = "1.57.0")]
1061+
#[stable(feature = "is_symlink", since = "1.58.0")]
10621062
pub fn is_symlink(&self) -> bool {
10631063
self.file_type().is_symlink()
10641064
}

library/std/src/path.rs

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

0 commit comments

Comments
 (0)