Skip to content

Commit b2ce3e5

Browse files
committed
Remove trailing space in error message
1 parent 05d0b96 commit b2ce3e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_middle/src/ty/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ impl<'tcx> ty::TyS<'tcx> {
232232
let n = tcx.lift(&n).unwrap();
233233
match n.try_eval_usize(tcx, ty::ParamEnv::empty()) {
234234
_ if t.is_simple_ty() => format!("array `{}`", self).into(),
235-
Some(n) => format!("array of {} element{} ", n, pluralize!(n)).into(),
235+
Some(n) => format!("array of {} element{}", n, pluralize!(n)).into(),
236236
None => "array".into(),
237237
}
238238
}

src/test/ui/slice-to-vec-comparison.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0308]: mismatched types
22
--> $DIR/slice-to-vec-comparison.rs:4:9
33
|
44
LL | a > b;
5-
| ^ expected array of 0 elements , found struct `Vec`
5+
| ^ expected array of 0 elements, found struct `Vec`
66
|
77
= note: expected reference `&[_; 0]`
88
found reference `&Vec<u8>`

0 commit comments

Comments
 (0)