Skip to content

Commit 0186c24

Browse files
committed
Auto merge of rust-lang#3281 - RalfJung:typo, r=RalfJung
fix typo in operator.rs
2 parents fae15df + 3cc0f02 commit 0186c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/src/operator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
2424

2525
Ok(match bin_op {
2626
Eq | Ne | Lt | Le | Gt | Ge => {
27-
assert_eq!(left.layout.abi, right.layout.abi); // types an differ, e.g. fn ptrs with different `for`
27+
assert_eq!(left.layout.abi, right.layout.abi); // types can differ, e.g. fn ptrs with different `for`
2828
let size = this.pointer_size();
2929
// Just compare the bits. ScalarPairs are compared lexicographically.
3030
// We thus always compare pairs and simply fill scalars up with 0.

0 commit comments

Comments
 (0)