about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-05-05 16:13:48 -0400
committerCorey Farwell <coreyf@rwell.org>2015-05-05 16:13:48 -0400
commit2741b94daaa56c0f88ed91a7a4e9b888a5b835a0 (patch)
tree78eb5462e6b028346a045fcb764857cc8fc3e220
parent6cd748611346dec3181f81ca3aa551cce0529343 (diff)
downloadrust-2741b94daaa56c0f88ed91a7a4e9b888a5b835a0.tar.gz
rust-2741b94daaa56c0f88ed91a7a4e9b888a5b835a0.zip
Indicate code is code-like in diagnostic error message
-rw-r--r--src/librustc/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs
index 6cb39c39659..0aefba28efa 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##"