mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
add ex073 comptime 8
This commit is contained in:
8
patches/patches/073_comptime8.patch
Normal file
8
patches/patches/073_comptime8.patch
Normal file
@@ -0,0 +1,8 @@
|
||||
35c35
|
||||
< const my_llama = getLlama(5);
|
||||
---
|
||||
> const my_llama = getLlama(4);
|
||||
40c40
|
||||
< fn getLlama(i: usize) u32 {
|
||||
---
|
||||
> fn getLlama(comptime i: usize) u32 {
|
||||
Reference in New Issue
Block a user