aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-05-09 19:59:38 -0400
committerDave Gauer <dave@ratfactor.com>2021-05-09 19:59:38 -0400
commit273b980a9a662d77f5dcdc5bd95b88dc4ce5c3db (patch)
treeb218f74dce7a49ce49e22950a857e6df0fa48ad5
parent4ac081558cc7105dfd9ad9faed5998691a21460a (diff)
downloadziglings-273b980a9a662d77f5dcdc5bd95b88dc4ce5c3db.tar.gz
ziglings-273b980a9a662d77f5dcdc5bd95b88dc4ce5c3db.tar.bz2
ziglings-273b980a9a662d77f5dcdc5bd95b88dc4ce5c3db.tar.xz
ziglings-273b980a9a662d77f5dcdc5bd95b88dc4ce5c3db.zip
076 sentinels must be same type
-rw-r--r--exercises/076_sentinels.zig3
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 {