Sobeston / zig.guide

Repo for https://zig.guide content. Get up to speed with Zig quickly.
https://zig.guide
MIT License
647 stars 170 forks source link

fix: For-loop syntax in fahrenheit-to-celsius post #229

Closed jay-dee7 closed 5 months ago

jay-dee7 commented 5 months ago

As explained on the for-loop guide in zig.guide here - https://zig.guide/language-basics/for-loops/, To capture the index, we also need to initialize the variable for index with 0 using 0.. syntax. This PR fixes that syntax typo.