Hi, I am completely new to zig and wanted to
give feedback on the documentation.
I was trying to figure out how to read a file so I went over to the documentation and quickly found Io.File and the reader function, the experience was great.
But this function has a parameter io with type Io, so I followed the link into the Io type but I couldn’t find anywhere how to get a value of this type. Same thing for the File value, I could not find how to open a file.
I ended up asking an LLM and it pointed me to the code samples, but imo the API documentation should have me covered.
PS: I am not sure if this is the appropriate category.
I would be happy to help patch these kinds of gaps in the documentation if you think it is relevant. Something like “File handles are typically obtained through Io.Dir” in the Io.File struct section could really save time and frustration to new comers.