diff options
author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2023-06-10 22:13:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-10 22:13:24 +0200 |
commit | cac5770e3cbccccf1eac57f754e418ad56661df9 (patch) | |
tree | 628387d1b39e895403a3616687c51ae0e73634f2 /exercises | |
parent | 80c92e3c945040ca8c441e6afd13962c71c75266 (diff) | |
parent | 33d3cc1647f18fa7bb88d1469c744d5ab7e99919 (diff) |
Merge pull request #321 from ratfactor/issue317
Fixed description of @addWithOverflow
Diffstat (limited to 'exercises')
-rw-r--r-- | exercises/064_builtins.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/exercises/064_builtins.zig b/exercises/064_builtins.zig index 8df11f7..f9c156a 100644 --- a/exercises/064_builtins.zig +++ b/exercises/064_builtins.zig @@ -13,7 +13,7 @@ // compiler, such as type introspection (the ability to examine // type properties from within a program). // -// Zig currently contains 101 builtin functions. We're certainly +// Zig contains over 100 builtin functions. We're certainly // not going to cover them all, but we can look at some // interesting ones. // @@ -28,8 +28,7 @@ const print = @import("std").debug.print; pub fn main() void { // The second builtin, alphabetically, is: // @addWithOverflow(a: anytype, b: anytype) struct { @TypeOf(a, b), u1 } - // * 'T' will be the type of the other parameters. - // * 'a' and 'b' are numbers of the type T. + // * 'a' and 'b' are numbers of anytype. // * The return value is a tuple with the result and a possible overflow bit. // // Let's try it with a tiny 4-bit integer size to make it clear: |