Skip to content

Commit a308277

Browse files
committed
Update target.rs alloc.rs event.rs simd.rs
fix typos
1 parent 4028efc commit a308277

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/shims/intrinsics/simd.rs

Lines changed: 2 additions & 2 deletions
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)?;

src/shims/unix/linux/fd/event.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl FileDescriptor for Event {
3838
}
3939

4040
/// A write call adds the 8-byte integer value supplied in
41-
/// its buffer (in native endianess) to the counter. The maximum value that may be
41+
/// its buffer (in native endianness) to the counter. The maximum value that may be
4242
/// stored in the counter is the largest unsigned 64-bit value
4343
/// minus 1 (i.e., 0xfffffffffffffffe). If the addition would
4444
/// cause the counter's value to exceed the maximum, then the
@@ -57,7 +57,7 @@ impl FileDescriptor for Event {
5757
) -> InterpResult<'tcx, io::Result<usize>> {
5858
let v1 = self.val.get();
5959
let bytes: [u8; 8] = bytes.try_into().unwrap(); // FIXME fail gracefully when this has the wrong size
60-
// Convert from target endianess to host endianess.
60+
// Convert from target endianness to host endianness.
6161
let num = match tcx.sess.target.endian {
6262
Endian::Little => u64::from_le_bytes(bytes),
6363
Endian::Big => u64::from_be_bytes(bytes),

0 commit comments

Comments
 (0)