| author | |
| committer | |
| log | 6c0719fd5f29f524b789d5038fdc9fc0878f2e6a |
| tree | 138a3006caafac586d9f76cc9c9efceb0bb3e543 |
| parent | cea310c9082a985b103953dd84579aa1a6dce6ea |
1 files changed, 2 insertions(+), 0 deletions(-)
lib/std/meta.zig+2| ... | ... | @@ -97,6 +97,8 @@ test "std.meta.stringToEnum" { |
| 97 | 97 | try testing.expect(null == stringToEnum(E1, "C")); |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | /// Deprecated, use `@bitSizeOf()`. | |
| 101 | /// TODO Remove this after zig 0.10.0 is released. | |
| 100 | 102 | pub fn bitCount(comptime T: type) comptime_int { |
| 101 | 103 | return switch (@typeInfo(T)) { |
| 102 | 104 | .Bool => 1, |