From 273b980a9a662d77f5dcdc5bd95b88dc4ce5c3db Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sun, 9 May 2021 19:59:38 -0400 Subject: 076 sentinels must be same type --- exercises/076_sentinels.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'exercises/076_sentinels.zig') 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 { -- cgit v1.2.3-ZIG