File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2321,7 +2321,9 @@ impl Path {
2321
2321
}
2322
2322
2323
2323
/// Returns an object that implements [`Display`] for safely printing paths
2324
- /// that may contain non-Unicode data.
2324
+ /// that may contain non-Unicode data. This may perform lossy conversion,
2325
+ /// depending on the platform. If you would like an implementation which
2326
+ /// escapes the path please use [`Debug`] instead.
2325
2327
///
2326
2328
/// [`Display`]: fmt::Display
2327
2329
///
@@ -2555,7 +2557,9 @@ impl fmt::Debug for Path {
2555
2557
///
2556
2558
/// A [`Path`] might contain non-Unicode data. This `struct` implements the
2557
2559
/// [`Display`] trait in a way that mitigates that. It is created by the
2558
- /// [`display`](Path::display) method on [`Path`].
2560
+ /// [`display`](Path::display) method on [`Path`]. This may perform lossy
2561
+ /// conversion, depending on the platform. If you would like an implementation
2562
+ /// which escapes the path please use [`Debug`] instead.
2559
2563
///
2560
2564
/// # Examples
2561
2565
///
You can’t perform that action at this time.
0 commit comments