diff --git a/lib/std/meta.zig b/lib/std/meta.zig index 9940fafba0..e6ce746f19 100644 --- a/lib/std/meta.zig +++ b/lib/std/meta.zig @@ -97,6 +97,8 @@ test "std.meta.stringToEnum" { try testing.expect(null == stringToEnum(E1, "C")); } +/// Deprecated, use `@bitSizeOf()`. +/// TODO Remove this after zig 0.10.0 is released. pub fn bitCount(comptime T: type) comptime_int { return switch (@typeInfo(T)) { .Bool => 1,