Skip to content

Commit efb5a85

Browse files
author
Nick Hamann
committed
Small improvements for explanations of E0250, E0368, E0372.
1 parent b593359 commit efb5a85

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -979,10 +979,10 @@ const C: [u32; 0.0] = []; // error
979979
"##,
980980

981981
E0250: r##"
982-
This means there was an error while evaluating the expression for the length of
983-
a fixed-size array type.
982+
There was an error while evaluating the expression for the length of a fixed-
983+
size array type.
984984
985-
Some examples of code that produces this error are:
985+
Some examples of this error are:
986986
987987
```
988988
// divide by zero in the length expression
@@ -1032,9 +1032,7 @@ impl Foo for Bar {
10321032

10331033
E0368: r##"
10341034
This error indicates that a binary assignment operator like `+=` or `^=` was
1035-
applied to the wrong types.
1036-
1037-
A couple examples of this are as follows:
1035+
applied to the wrong types. For example:
10381036
10391037
```
10401038
let mut x: u16 = 5;
@@ -1097,8 +1095,7 @@ Trying to implement a trait for a trait object (as in `impl Trait1 for
10971095
Trait2 { ... }`) does not work if the trait is not object-safe. Please see the
10981096
[RFC 255] for more details on object safety rules.
10991097
1100-
[RFC 255]:https://github.com/rust-lang/rfcs/blob/master/text/0255-object-\
1101-
safety.md
1098+
[RFC 255]: https://github.com/rust-lang/rfcs/pull/255
11021099
"##
11031100

11041101
}

0 commit comments

Comments
 (0)