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

missing return type from example in 069

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

+ 1 - 1
exercises/069_comptime4.zig

@@ -2,7 +2,7 @@
 // One of the more common uses of 'comptime' function parameters is
 // passing a type to a function:
 //
-//     fn foo(comptime MyType: type) { ... }
+//     fn foo(comptime MyType: type) void { ... }
 //
 // In fact, types are ONLY available at compile time, so the
 // 'comptime' keyword is required here.