Skip to content

Commit f6f93fd

Browse files
committed
Add note on Windows path behaviour
1 parent 160faf1 commit f6f93fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/result.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,7 @@ impl<T, E> Result<T, E> {
12961296
/// ```
12971297
/// use std::{io::ErrorKind, path::Path};
12981298
///
1299+
/// // Note: on Windows "/" maps to "C:\"
12991300
/// let root_modified_time = Path::new("/").metadata().and_then(|md| md.modified());
13001301
/// assert!(root_modified_time.is_ok());
13011302
///

0 commit comments

Comments
 (0)