about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-08-11 13:25:11 -0400
committerCorey Farwell <coreyf@rwell.org>2015-08-11 13:25:11 -0400
commit3acec57d3651eb431aafdd8f408b93f75ca2f8a5 (patch)
tree2f8d69f0ae7f2ecb8078ca28fc8e62b3b8e39367
parent1af31d4974e33027a68126fa5a5a3c2c6491824f (diff)
downloadrust-3acec57d3651eb431aafdd8f408b93f75ca2f8a5.tar.gz
rust-3acec57d3651eb431aafdd8f408b93f75ca2f8a5.zip
Fix formatting for E0067 and E0070 error messages
They are currently rendered incorrectly

https://doc.rust-lang.org/error-index.html#E0067

https://doc.rust-lang.org/error-index.html#E0070
-rw-r--r--src/librustc_typeck/diagnostics.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs
index bd4e4fc3110..e10b82b94e3 100644
--- a/src/librustc_typeck/diagnostics.rs
+++ b/src/librustc_typeck/diagnostics.rs
@@ -642,6 +642,7 @@ item paths (ie, namespaced variables), dereferences, indexing expressions,
 and field references.
 
 Let's start with some bad examples:
+
 ```
 use std::collections::LinkedList;
 
@@ -653,8 +654,10 @@ LinkedList::new() += 1;
 fn some_func(i: &mut i32) {
     i += 12; // Error : '+=' operation cannot be applied on a reference !
 }
+```
 
 And now some good examples:
+
 ```
 let mut i : i32 = 0;
 
@@ -665,7 +668,6 @@ i += 12; // Good !
 fn some_func(i: &mut i32) {
     *i += 12; // Good !
 }
-
 ```
 "##,
 
@@ -694,6 +696,7 @@ More details can be found here:
 https://doc.rust-lang.org/reference.html#lvalues,-rvalues-and-temporaries
 
 Now, we can go further. Here are some bad examples:
+
 ```
 struct SomeStruct {
     x: i32,