authorgravatar for tgschultz@gmail.comtgschultz <tgschultz@gmail.com> 2019-05-04 02:38:16+00:00
committergravatar for tgschultz@gmail.comtgschultz <tgschultz@gmail.com> 2019-05-04 02:38:16+00:00
log3e3bdd577c8cc0c4e2669a94c34d3fae6b7bd60f
treee4bfd9ccc66be6863482e8f31c1275e094cea823
parente2fd37e75b0b309ee8e2bf6c3678da87d84b369d

Fixed some comments


1 files changed, 4 insertions(+), 2 deletions(-)

std/packed_int_array.zig+4-2
......@@ -173,7 +173,7 @@ pub fn PackedIntIo(comptime Int: type) type
173173
174174///Creates a bit-packed array of int_count integers of type Int. Bits
175175/// are packed using native endianess and without storing any meta
176/// data. PackedArray(i3, 8) will occupy exactly 3 bytes of memory.
176/// data. PackedIntArray(i3, 8) will occupy exactly 3 bytes of memory.
177177pub fn PackedIntArray(comptime Int: type, comptime int_count: usize) type
178178{
179179 const int_bits = comptime std.meta.bitCount(Int);
......@@ -234,7 +234,9 @@ pub fn PackedIntArray(comptime Int: type, comptime int_count: usize) type
234234 };
235235}
236236
237//@TODO: Add Slice Casting
237///Uses a slice as a bit-packed block of int_count integers of type Int.
238/// Bits are packed using native endianess and without storing any meta
239/// data.
238240pub fn PackedIntSlice(comptime Int: type) type
239241{
240242 const int_bits = comptime std.meta.bitCount(Int);