capy-ui / capy

💻Build one codebase and get native UI on Windows, Linux and Web
https://capy-ui.org
Mozilla Public License 2.0
1.69k stars 62 forks source link

For loop update #36

Closed jernejp21 closed 1 year ago

jernejp21 commented 1 year ago

I have noticed that for loop syntax is not up to date with the latest zig.

Previous syntax for index of for loop elements: for (items) |item, index|

New syntax for index of for loop elements: for (items, 0..) |item, index|

I have created pull request #35. Hope it helps.