Skip to content

Commit 6fd1c2b

Browse files
add doc alias for set_times
Co-authored-by: Josh Triplett <[email protected]>
1 parent 1dd5641 commit 6fd1c2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/std/src/fs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@ pub fn write<P: AsRef<Path>, C: AsRef<[u8]>>(path: P, contents: C) -> io::Result
420420
/// }
421421
/// ```
422422
#[unstable(feature = "fs_set_times", issue = "147455")]
423+
#[doc(alias = "utimens")]
424+
#[doc(alias = "utimes")]
425+
#[doc(alias = "utime")]
423426
pub fn set_times<P: AsRef<Path>>(path: P, times: FileTimes) -> io::Result<()> {
424427
fs_imp::set_times(path.as_ref(), times.0)
425428
}

0 commit comments

Comments
 (0)