Skip to content

Commit 2741b94

Browse files
committed
Indicate code is code-like in diagnostic error message
1 parent 6cd7486 commit 2741b94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ An example of an empty type is `enum Empty { }`.
3737
E0003: r##"
3838
Not-a-Number (NaN) values cannot be compared for equality and hence can never
3939
match the input to a match expression. To match against NaN values, you should
40-
instead use the `is_nan` method in a guard, as in: x if x.is_nan() => ...
40+
instead use the `is_nan` method in a guard, as in: `x if x.is_nan() => ...`
4141
"##,
4242

4343
E0004: r##"

0 commit comments

Comments
 (0)