about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNick Hamann <nick@wabbo.org>2015-05-19 16:51:28 -0500
committerNick Hamann <nick@wabbo.org>2015-05-26 15:12:52 -0500
commitefb5a85e59c07075bf39969ff4dc6390f49a8794 (patch)
treed0eb791d1ff6c0df28dfac7bb30daa4be3b79e37 /src
parentb593359f7f90d7cb9ec71a4b99f9b1396603a8a8 (diff)
downloadrust-efb5a85e59c07075bf39969ff4dc6390f49a8794.tar.gz
rust-efb5a85e59c07075bf39969ff4dc6390f49a8794.zip
Small improvements for explanations of E0250, E0368, E0372.
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/diagnostics.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs
index 1c794e7f257..0f381b590de 100644
--- a/src/librustc_typeck/diagnostics.rs
+++ b/src/librustc_typeck/diagnostics.rs
@@ -979,10 +979,10 @@ const C: [u32; 0.0] = []; // error
 "##,
 
 E0250: r##"
-This means there was an error while evaluating the expression for the length of
-a fixed-size array type.
+There was an error while evaluating the expression for the length of a fixed-
+size array type.
 
-Some examples of code that produces this error are:
+Some examples of this error are:
 
 ```
 // divide by zero in the length expression
@@ -1032,9 +1032,7 @@ impl Foo for Bar {
 
 E0368: r##"
 This error indicates that a binary assignment operator like `+=` or `^=` was
-applied to the wrong types.
-
-A couple examples of this are as follows:
+applied to the wrong types. For example:
 
 ```
 let mut x: u16 = 5;
@@ -1097,8 +1095,7 @@ Trying to implement a trait for a trait object (as in `impl Trait1 for
 Trait2 { ... }`) does not work if the trait is not object-safe. Please see the
 [RFC 255] for more details on object safety rules.
 
-[RFC 255]:https://github.com/rust-lang/rfcs/blob/master/text/0255-object-\
-safety.md
+[RFC 255]: https://github.com/rust-lang/rfcs/pull/255
 "##
 
 }