Sobeston / zig.guide

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

Update chapter-2.md (early PR) #152

Closed florianchappaz closed 1 year ago

florianchappaz commented 2 years ago

Early PR preparing future zig version (0.10.0 ?). This change follows the following commit on zig master : https://github.com/ziglang/zig/commit/262f4c7b3a850594a75ec154db2ba8d5f9f517ab. OpenDirOptions doesn't provide a .iterate field anymore, and two distinct structs have been created : Dir & IterableDir. Thus, we need two distinct variable to create files in the directory and to iterate in it.