diff options
| author | Dave Gauer <[email protected]> | 2021-05-09 19:59:38 -0400 |
|---|---|---|
| committer | Dave Gauer <[email protected]> | 2021-05-09 19:59:38 -0400 |
| commit | afc5f94a1554f29da69ceb79a21c1fe2a8790257 (patch) | |
| tree | b218f74dce7a49ce49e22950a857e6df0fa48ad5 | |
| parent | 4a379159a3f35e30e34745477eccd2420303264a (diff) | |
| download | ziglings-afc5f94a1554f29da69ceb79a21c1fe2a8790257.tar.xz ziglings-afc5f94a1554f29da69ceb79a21c1fe2a8790257.zip | |
076 sentinels must be same type
| -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 { |
