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

Update 078_sentinels3.zig

Changed description of @ptrCast
closes https://github.com/ratfactor/ziglings/issues/334
Chris Boesch 2 лет назад
Родитель
Сommit
e142d40fb0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      exercises/078_sentinels3.zig

+ 1 - 1
exercises/078_sentinels3.zig

@@ -8,7 +8,7 @@
 // Yes, we can. Zig's @ptrCast() builtin can do this. Check out
 // the signature:
 //
-//     @ptrCast(comptime DestType: type, value: anytype) DestType
+//     @ptrCast(value: anytype) anytype
 //
 // See if you can use it to solve the same many-item pointer
 // problem, but without needing a length!