diff --git a/src/error.rs b/src/error.rs index 91bd0d959ff2..0c23038c3c35 100644 --- a/src/error.rs +++ b/src/error.rs @@ -91,7 +91,7 @@ impl<'tcx> Error for EvalError<'tcx> { EvalError::ReadBytesAsPointer => "a memory access tried to interpret some bytes as a pointer", EvalError::InvalidPointerMath => - "attempted to do invalid arithmetic on pointers that would leak base addresses, e.g. compating pointers into different allocations", + "attempted to do invalid arithmetic on pointers that would leak base addresses, e.g. comparing pointers into different allocations", EvalError::ReadUndefBytes => "attempted to read undefined bytes", EvalError::DeadLocal =>