]> git.lizzy.rs Git - rust.git/commitdiff
Fix formatting for E0067 and E0070 error messages
authorCorey Farwell <coreyf@rwell.org>
Tue, 11 Aug 2015 17:25:11 +0000 (13:25 -0400)
committerCorey Farwell <coreyf@rwell.org>
Tue, 11 Aug 2015 17:25:11 +0000 (13:25 -0400)
They are currently rendered incorrectly

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

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

src/librustc_typeck/diagnostics.rs

index bd4e4fc31107c551e33dfd1b1f42ec2f18430e32..e10b82b94e33db9f8de0c4565df8e492681c7cb3 100644 (file)
@@ -642,6 +642,7 @@ enum variant, one of the fields was not provided. Each field should be
 and field references.
 
 Let's start with some bad examples:
+
 ```
 use std::collections::LinkedList;
 
@@ -653,8 +654,10 @@ enum variant, one of the fields was not provided. Each field should be
 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 @@ fn some_func(i: &mut i32) {
 fn some_func(i: &mut i32) {
     *i += 12; // Good !
 }
-
 ```
 "##,
 
@@ -694,6 +696,7 @@ fn foo() -> u8 {
 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,