mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-11 09:29:59 +00:00
076 sentinels must be same type
This commit is contained in:
@@ -35,6 +35,9 @@
|
|||||||
// many-item pointer without knowing its length. (We CAN'T do
|
// many-item pointer without knowing its length. (We CAN'T do
|
||||||
// that with regular many-item pointers!).
|
// 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;
|
const print = @import("std").debug.print;
|
||||||
|
|
||||||
pub fn main() void {
|
pub fn main() void {
|
||||||
|
|||||||
Reference in New Issue
Block a user