Skip to content

Improve documentation of std.io.ErrorKind variants #27637

Closed
@Havvy

Description

@Havvy

On the std.io.ErrorKind documentation page, there's a list of error kinds along with descriptions of what the kinds mean.

I personally got confused by what the new variant InvalidData actually means from that description. How do I have operation parameters but "malformed" data? What even is a parameter in this case? I know a parameter as an input to a function, but Rust is supposed to typecheck my problems, so how do they happen? Is it because of raw pointer stuff perchance? I don't really know from looking at that documentation, and I'm hopelessly confused.

But because I'm hopelessly confused, I thought I'd look for a link to some usage of these kinds - learn by example. But there's no linking to functions that might return these variants specifically that I can go to and read their documentation. I think these links would be invaluable for what is probably going to be the most read error page in the standard library documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions