mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-03 17:03:30 +02:00
missing return type from example in 069
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
// One of the more common uses of 'comptime' function parameters is
|
// One of the more common uses of 'comptime' function parameters is
|
||||||
// passing a type to a function:
|
// 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
|
// In fact, types are ONLY available at compile time, so the
|
||||||
// 'comptime' keyword is required here.
|
// 'comptime' keyword is required here.
|
||||||
|
|||||||
Reference in New Issue
Block a user