File tree 1 file changed +2
-2
lines changed
src/tools/miri/src/shims/unix/linux/fd
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ impl FileDescriptor for Event {
38
38
}
39
39
40
40
/// 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
42
42
/// stored in the counter is the largest unsigned 64-bit value
43
43
/// minus 1 (i.e., 0xfffffffffffffffe). If the addition would
44
44
/// cause the counter's value to exceed the maximum, then the
@@ -57,7 +57,7 @@ impl FileDescriptor for Event {
57
57
) -> InterpResult < ' tcx , io:: Result < usize > > {
58
58
let v1 = self . val . get ( ) ;
59
59
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 .
61
61
let num = match tcx. sess . target . endian {
62
62
Endian :: Little => u64:: from_le_bytes ( bytes) ,
63
63
Endian :: Big => u64:: from_be_bytes ( bytes) ,
You can’t perform that action at this time.
0 commit comments