File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/tools/miri/src/shims/unix/linux/fd Expand file tree Collapse file tree 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 {
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) ,
You can’t perform that action at this time.
0 commit comments