diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-05-09 19:59:38 -0400 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-05-09 19:59:38 -0400 |
commit | 273b980a9a662d77f5dcdc5bd95b88dc4ce5c3db (patch) | |
tree | b218f74dce7a49ce49e22950a857e6df0fa48ad5 /exercises/076_sentinels.zig | |
parent | 4ac081558cc7105dfd9ad9faed5998691a21460a (diff) | |
download | ziglings-273b980a9a662d77f5dcdc5bd95b88dc4ce5c3db.tar.gz ziglings-273b980a9a662d77f5dcdc5bd95b88dc4ce5c3db.tar.bz2 ziglings-273b980a9a662d77f5dcdc5bd95b88dc4ce5c3db.tar.xz ziglings-273b980a9a662d77f5dcdc5bd95b88dc4ce5c3db.zip |
076 sentinels must be same type
Diffstat (limited to 'exercises/076_sentinels.zig')
-rw-r--r-- | exercises/076_sentinels.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/exercises/076_sentinels.zig b/exercises/076_sentinels.zig index 4c16e7c..476f03f 100644 --- a/exercises/076_sentinels.zig +++ b/exercises/076_sentinels.zig @@ -35,6 +35,9 @@ // many-item pointer without knowing its length. (We CAN'T do // that with regular many-item pointers!). // +// Important: the sentinel value must be of the same type as the +// data being termined! +// const print = @import("std").debug.print; pub fn main() void { |