From 2741b94daaa56c0f88ed91a7a4e9b888a5b835a0 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Tue, 5 May 2015 16:13:48 -0400 Subject: [PATCH] Indicate code is code-like in diagnostic error message --- src/librustc/diagnostics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 6cb39c39659e8..0aefba28efa63 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -37,7 +37,7 @@ An example of an empty type is `enum Empty { }`. E0003: r##" Not-a-Number (NaN) values cannot be compared for equality and hence can never match the input to a match expression. To match against NaN values, you should -instead use the `is_nan` method in a guard, as in: x if x.is_nan() => ... +instead use the `is_nan` method in a guard, as in: `x if x.is_nan() => ...` "##, E0004: r##"