Skip to content

Commit 1899dd7

Browse files
authored
Update simd.rs
fix typo
1 parent f8ea309 commit 1899dd7

File tree

1 file changed

+2
-2
lines changed
  • src/tools/miri/src/shims/intrinsics

1 file changed

+2
-2
lines changed

src/tools/miri/src/shims/intrinsics/simd.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
427427
let bitmask_len = u32::try_from(bitmask_len).unwrap();
428428

429429
// To read the mask, we transmute it to an integer.
430-
// That does the right thing wrt endianess.
430+
// That does the right thing wrt endianness.
431431
let mask_ty = this.machine.layouts.uint(mask.layout.size).unwrap();
432432
let mask = mask.transmute(mask_ty, this)?;
433433
let mask: u64 = this.read_scalar(&mask)?.to_bits(mask_ty.size)?.try_into().unwrap();
@@ -479,7 +479,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
479479
}
480480
}
481481
// We have to change the type of the place to be able to write `res` into it. This
482-
// transmutes the integer to an array, which does the right thing wrt endianess.
482+
// transmutes the integer to an array, which does the right thing wrt endianness.
483483
let dest =
484484
dest.transmute(this.machine.layouts.uint(dest.layout.size).unwrap(), this)?;
485485
this.write_int(res, &dest)?;

0 commit comments

Comments
 (0)