Skip to content

Commit 4f275e3

Browse files
author
Nick Hamann
committed
Small improvements for explanations of E0250, E0368, E0372.
1 parent 7ac49fc commit 4f275e3

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
@@ -942,10 +942,10 @@ const C: [u32; 0.0] = []; // error
942942
"##,
943943

944944
E0250: r##"
945-
This means there was an error while evaluating the expression for the length of
946-
a fixed-size array type.
945+
There was an error while evaluating the expression for the length of a fixed-
946+
size array type.
947947
948-
Some examples of code that produces this error are:
948+
Some examples of this error are:
949949
950950
```
951951
// divide by zero in the length expression
@@ -976,9 +976,7 @@ explicitly implement it for a type.
976976

977977
E0368: r##"
978978
This error indicates that a binary assignment operator like `+=` or `^=` was
979-
applied to the wrong types.
980-
981-
A couple examples of this are as follows:
979+
applied to the wrong types. For example:
982980
983981
```
984982
let mut x: u16 = 5;
@@ -1041,8 +1039,7 @@ Trying to implement a trait for a trait object (as in `impl Trait1 for
10411039
Trait2 { ... }`) does not work if the trait is not object-safe. Please see the
10421040
[RFC 255] for more details on object safety rules.
10431041
1044-
[RFC 255]:https://github.com/rust-lang/rfcs/blob/master/text/0255-object-\
1045-
safety.md
1042+
[RFC 255]: https://github.com/rust-lang/rfcs/pull/255
10461043
"##
10471044

10481045
}

0 commit comments

Comments
 (0)