From 3e3bdd577c8cc0c4e2669a94c34d3fae6b7bd60f Mon Sep 17 00:00:00 2001 From: tgschultz Date: Sat, 4 May 2019 02:38:16 +0000 Subject: [PATCH] Fixed some comments --- std/packed_int_array.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/std/packed_int_array.zig b/std/packed_int_array.zig index 799df86d29..10f84cb643 100644 --- a/std/packed_int_array.zig +++ b/std/packed_int_array.zig @@ -173,7 +173,7 @@ pub fn PackedIntIo(comptime Int: type) type ///Creates a bit-packed array of int_count integers of type Int. Bits /// are packed using native endianess and without storing any meta -/// data. PackedArray(i3, 8) will occupy exactly 3 bytes of memory. +/// data. PackedIntArray(i3, 8) will occupy exactly 3 bytes of memory. pub fn PackedIntArray(comptime Int: type, comptime int_count: usize) type { const int_bits = comptime std.meta.bitCount(Int); @@ -234,7 +234,9 @@ pub fn PackedIntArray(comptime Int: type, comptime int_count: usize) type }; } -//@TODO: Add Slice Casting +///Uses a slice as a bit-packed block of int_count integers of type Int. +/// Bits are packed using native endianess and without storing any meta +/// data. pub fn PackedIntSlice(comptime Int: type) type { const int_bits = comptime std.meta.bitCount(Int);