zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit eb183ad9febef775efabb1a4592f84d6cf088c28 (tree)
parent 5929e5ca0ebde636dd69d52d648df8cff59e6d96
Author: Tadeo Kondrak <me@tadeo.ca>
Date:   Tue, 28 Apr 2020 19:06:48 -0600

rename std.meta.IntType to std.meta.Int

Closes https://github.com/ziglang/zig/issues/5194

Diffstat:
Mlib/std/meta.zig | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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,