diff options
| author | Loris Cro <kappaloris@gmail.com> | 2023-04-22 19:10:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-22 19:10:23 +0200 |
| commit | c5fb245f60039565f7a5a4de412da815f037ab15 (patch) | |
| tree | 0a473e618a9982cd9a0209bc053028eef8497cce /lib/std/packed_int_array.zig | |
| parent | 428f7452704d1a7b3d9da8e7d4d408db4cbff81f (diff) | |
| parent | ad634bca9f12a9de641270478a6abf9495b9846f (diff) | |
| download | zig-c5fb245f60039565f7a5a4de412da815f037ab15.tar.gz zig-c5fb245f60039565f7a5a4de412da815f037ab15.zip | |
Merge branch 'master' into autodoc-src-files-dirs
Diffstat (limited to 'lib/std/packed_int_array.zig')
| -rw-r--r-- | lib/std/packed_int_array.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/packed_int_array.zig b/lib/std/packed_int_array.zig index 449c2f487f..8004d223f7 100644 --- a/lib/std/packed_int_array.zig +++ b/lib/std/packed_int_array.zig @@ -182,7 +182,7 @@ pub fn PackedIntIo(comptime Int: type, comptime endian: Endian) type { /// Creates a bit-packed array of `Int`. Non-byte-multiple integers /// will take up less memory in PackedIntArray than in a normal array. -/// Elements are packed using native endianess and without storing any +/// Elements are packed using native endianness and without storing any /// meta data. PackedArray(i3, 8) will occupy exactly 3 bytes /// of memory. pub fn PackedIntArray(comptime Int: type, comptime int_count: usize) type { @@ -261,7 +261,7 @@ pub fn PackedIntArrayEndian(comptime Int: type, comptime endian: Endian, comptim } /// Create a PackedIntSliceEndian of the array using `NewInt` as the integer type - /// and `new_endian` as the new endianess. `NewInt`'s bit width must fit evenly + /// and `new_endian` as the new endianness. `NewInt`'s bit width must fit evenly /// within the array's `Int`'s total bits. pub fn sliceCastEndian(self: *Self, comptime NewInt: type, comptime new_endian: Endian) PackedIntSliceEndian(NewInt, new_endian) { return Io.sliceCast(&self.bytes, NewInt, new_endian, 0, int_count); @@ -336,7 +336,7 @@ pub fn PackedIntSliceEndian(comptime Int: type, comptime endian: Endian) type { } /// Create a PackedIntSliceEndian of the slice using `NewInt` as the integer type - /// and `new_endian` as the new endianess. `NewInt`'s bit width must fit evenly + /// and `new_endian` as the new endianness. `NewInt`'s bit width must fit evenly /// within the slice's `Int`'s total bits. pub fn sliceCastEndian(self: Self, comptime NewInt: type, comptime new_endian: Endian) PackedIntSliceEndian(NewInt, new_endian) { return Io.sliceCast(self.bytes, NewInt, new_endian, self.bit_offset, self.len); |
