about summary refs log tree commit diff
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2022-02-12 12:52:42 +0800
committercyqsimon <28627918+cyqsimon@users.noreply.github.com>2022-02-12 12:52:42 +0800
commitf6f93fd7ba348a4e0e2e9ca7af597d117d6337a1 (patch)
tree2fcfdadd45372e40461771fcbfb77fbf42d56d0f
parent160faf1b30d22b6a6958267e6f7bc3fb2b03754f (diff)
downloadrust-f6f93fd7ba348a4e0e2e9ca7af597d117d6337a1.tar.gz
rust-f6f93fd7ba348a4e0e2e9ca7af597d117d6337a1.zip
Add note on Windows path behaviour
-rw-r--r--library/core/src/result.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/result.rs b/library/core/src/result.rs
index 334a8990787..801e3a0b3a4 100644
--- a/library/core/src/result.rs
+++ b/library/core/src/result.rs
@@ -1296,6 +1296,7 @@ impl<T, E> Result<T, 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());
     ///