diff options
| author | Tadeo Kondrak <me@tadeo.ca> | 2020-04-28 19:06:48 -0600 |
|---|---|---|
| committer | Tadeo Kondrak <me@tadeo.ca> | 2020-04-28 19:11:18 -0600 |
| commit | eb183ad9febef775efabb1a4592f84d6cf088c28 (patch) | |
| tree | a1d322e0bf09b8e1d2d79220ab9926b7d8eec9d2 /lib/std/meta.zig | |
| parent | 5929e5ca0ebde636dd69d52d648df8cff59e6d96 (diff) | |
| download | zig-eb183ad9febef775efabb1a4592f84d6cf088c28.tar.gz zig-eb183ad9febef775efabb1a4592f84d6cf088c28.zip | |
rename std.meta.IntType to std.meta.Int
Closes https://github.com/ziglang/zig/issues/5194
Diffstat (limited to 'lib/std/meta.zig')
| -rw-r--r-- | lib/std/meta.zig | 5 |
1 files changed, 4 insertions, 1 deletions
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, |
