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

ziglearn.org does not match the github version #203

Closed Doaxan closed 10 months ago

Doaxan commented 10 months ago

Apparently at the moment it is better to use the github version of ziglearn, in addition to reading the documentation.

I counted at least 8 differences in https://ziglearn.org/chapter-1/ and chapter-1.md, one of them: https://ziglearn.org/chapter-1/#enums (outdated due to https://github.com/ziglang/zig/pull/16046)

Enum’s ordinal values start at 0. They can be accessed with the built-in function @enumToInt.

https://github.com/Sobeston/ziglearn/blob/master/chapter-1.md#enums

Enum's ordinal values start at 0. They can be accessed with the built-in function @intFromEnum.

Doaxan commented 10 months ago

I didn't notice docusaurus branch, waiting for the release 👍

Sobeston commented 10 months ago

Closed in https://github.com/Sobeston/ziglearn/pull/197