Add note on Windows path behaviour
This commit is contained in:
parent
160faf1b30
commit
f6f93fd7ba
@ -1296,6 +1296,7 @@ pub fn and<U>(self, res: Result<U, E>) -> Result<U, E> {
|
||||
/// ```
|
||||
/// use std::{io::ErrorKind, path::Path};
|
||||
///
|
||||
/// // Note: on Windows "/" maps to "C:\"
|
||||
/// let root_modified_time = Path::new("/").metadata().and_then(|md| md.modified());
|
||||
/// assert!(root_modified_time.is_ok());
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user