Skip to content

Commit e597071

Browse files
committed
Reword documentation for set_times to clarify directory handling
1 parent a99860b commit e597071

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/std/src/fs.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,8 +1112,9 @@ impl File {
11121112
/// [may change in the future][changes].
11131113
///
11141114
/// On most platforms, including UNIX and Windows platforms, this function can also change the
1115-
/// timestamps of a directory. To do so, open the directory with `File::open`, without
1116-
/// attempting to obtain write permission.
1115+
/// timestamps of a directory. To get a `File` representing a directory in order to call
1116+
/// `set_times`, open the directory with `File::open` without attempting to obtain write
1117+
/// permission.
11171118
///
11181119
/// [changes]: io#platform-specific-behavior
11191120
///

0 commit comments

Comments
 (0)