File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1090,13 +1090,14 @@ impl Metadata {
1090
1090
1091
1091
/// Returns the creation time listed in this metadata.
1092
1092
///
1093
- /// The returned value corresponds to the `birthtime` field of `stat` on
1093
+ /// The returned value corresponds to the `btime` field of `statx` on
1094
+ /// Linux not prior to 4.11, the `birthtime` field of `stat` on other
1094
1095
/// Unix platforms and the `ftCreationTime` field on Windows platforms.
1095
1096
///
1096
1097
/// # Errors
1097
1098
///
1098
1099
/// This field may not be available on all platforms, and will return an
1099
- /// `Err` on platforms where it is not available.
1100
+ /// `Err` on platforms or filesystems where it is not available.
1100
1101
///
1101
1102
/// # Examples
1102
1103
///
@@ -1109,7 +1110,7 @@ impl Metadata {
1109
1110
/// if let Ok(time) = metadata.created() {
1110
1111
/// println!("{:?}", time);
1111
1112
/// } else {
1112
- /// println!("Not supported on this platform");
1113
+ /// println!("Not supported on this platform or filesystem ");
1113
1114
/// }
1114
1115
/// Ok(())
1115
1116
/// }
You can’t perform that action at this time.
0 commit comments