From eb183ad9febef775efabb1a4592f84d6cf088c28 Mon Sep 17 00:00:00 2001 From: Tadeo Kondrak Date: Tue, 28 Apr 2020 19:06:48 -0600 Subject: rename std.meta.IntType to std.meta.Int Closes https://github.com/ziglang/zig/issues/5194 --- lib/std/meta.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/std/meta.zig') diff --git a/lib/std/meta.zig b/lib/std/meta.zig index 8ebaf14a52..e38712af2b 100644 --- a/lib/std/meta.zig +++ b/lib/std/meta.zig @@ -642,7 +642,10 @@ pub fn declList(comptime Namespace: type, comptime Decl: type) []const *const De } } -pub fn IntType(comptime is_signed: bool, comptime bit_count: u16) type { +/// Deprecated: use Int +pub const IntType = Int; + +pub fn Int(comptime is_signed: bool, comptime bit_count: u16) type { return @Type(TypeInfo{ .Int = .{ .is_signed = is_signed, -- cgit v1.2.3