Skip to content

Commit 33a34b0

Browse files
committed
Wording changes
1 parent c7f1b97 commit 33a34b0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/libcore/fmt/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,9 @@ pub trait Debug {
611611
#[rustc_on_unimplemented(
612612
on(
613613
_Self="std::path::Path",
614-
label="`{Self}` cannot be formatted with the default formatter, call `.display()` on it",
615-
note="you need to call `.display()` or `.to_string_lossy()` for safely printing paths as \
616-
they may contain non-Unicode data"
614+
label="`{Self}` cannot be formatted with the default formatter; call `.display()` on it",
615+
note="call `.display()` or `.to_string_lossy()` to safely print paths, \
616+
as they may contain non-Unicode data"
617617
),
618618
message="`{Self}` doesn't implement `{Display}`",
619619
label="`{Self}` cannot be formatted with the default formatter",

src/test/ui/suggestions/path-display.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ error[E0277]: `std::path::Path` doesn't implement `std::fmt::Display`
22
--> $DIR/path-display.rs:5:20
33
|
44
LL | println!("{}", path);
5-
| ^^^^ `std::path::Path` cannot be formatted with the default formatter, call `.display()` on it
5+
| ^^^^ `std::path::Path` cannot be formatted with the default formatter; call `.display()` on it
66
|
77
= help: the trait `std::fmt::Display` is not implemented for `std::path::Path`
8-
= note: you need to call `.display()` or `.to_string_lossy()` for safely printing paths as they may contain non-Unicode data
8+
= note: call `.display()` or `.to_string_lossy()` to safely print paths, as they may contain non-Unicode data
99
= note: required because of the requirements on the impl of `std::fmt::Display` for `&std::path::Path`
1010
= note: required by `std::fmt::Display::fmt`
1111

0 commit comments

Comments
 (0)