about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-27 12:52:34 +0000
committerbors <bors@rust-lang.org>2024-01-27 12:52:34 +0000
commit0186c24d9e27d12b7b2b3721663783293ffbab0b (patch)
treede9e17c94b91b775fe5a3ea780819748e5afb852
parentfae15df5c60ccf0f9eaa96651c869d2c2001fddb (diff)
parent3cc0f02dac78a1af69e395e2449f66d14926bb21 (diff)
downloadrust-0186c24d9e27d12b7b2b3721663783293ffbab0b.tar.gz
rust-0186c24d9e27d12b7b2b3721663783293ffbab0b.zip
Auto merge of #3281 - RalfJung:typo, r=RalfJung
fix typo in operator.rs
-rw-r--r--src/tools/miri/src/operator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/src/operator.rs b/src/tools/miri/src/operator.rs
index 14076444696..6f19dead2e9 100644
--- a/src/tools/miri/src/operator.rs
+++ b/src/tools/miri/src/operator.rs
@@ -24,7 +24,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
 
         Ok(match bin_op {
             Eq | Ne | Lt | Le | Gt | Ge => {
-                assert_eq!(left.layout.abi, right.layout.abi); // types an differ, e.g. fn ptrs with different `for`
+                assert_eq!(left.layout.abi, right.layout.abi); // types can differ, e.g. fn ptrs with different `for`
                 let size = this.pointer_size();
                 // Just compare the bits. ScalarPairs are compared lexicographically.
                 // We thus always compare pairs and simply fill scalars up with 0.