mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-06-08 10:07:01 +09:00
add ex069 comptime 4
This commit is contained in:
parent
17a22adce1
commit
be2b98f404
4 changed files with 74 additions and 2 deletions
6
patches/patches/069_comptime4.patch
Normal file
6
patches/patches/069_comptime4.patch
Normal file
|
@ -0,0 +1,6 @@
|
|||
45,46c45,46
|
||||
< fn makeSequence(comptime T: type, ??? size: usize) [???]T {
|
||||
< var sequence: [???]T = undefined;
|
||||
---
|
||||
> fn makeSequence(comptime T: type, comptime size: usize) [size]T {
|
||||
> var sequence: [size]T = undefined;
|
Loading…
Add table
Add a link
Reference in a new issue