]> git.lizzy.rs Git - rust.git/commitdiff
Indicate code is code-like in diagnostic error message
authorCorey Farwell <coreyf@rwell.org>
Tue, 5 May 2015 20:13:48 +0000 (16:13 -0400)
committerCorey Farwell <coreyf@rwell.org>
Tue, 5 May 2015 20:13:48 +0000 (16:13 -0400)
src/librustc/diagnostics.rs

index 6cb39c39659e874afc8ece2d4a481fc7b7e93cae..0aefba28efa630315bc0aff6efd818f0bf275bb9 100644 (file)
@@ -37,7 +37,7 @@
 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##"