Просмотр исходного кода

076 sentinels must be same type

Dave Gauer 4 лет назад
Родитель
Сommit
afc5f94a15
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      exercises/076_sentinels.zig

+ 3 - 0
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 {