Skip to content

Tutorial on how to read the standard library documentation on API docs homepage #40116

@carols10cents

Description

@carols10cents

Moved here from rust-lang/book#477, cc @redactedscribe, who said:

After a quick search, I did not find anything specifically talking about how to actually read/use Rust's standard library documentation. Making sense of programming documentation was not a skill I already possessed though it did eventually become clearer the more I had to refer to it.

Seeing as the documentation style is something that is standardised and used by almost all libraries, perhaps there should be some example in the book where a problem is solved via working with what the documentation informs us about at each stage of the problem.

I think a tutorial that walks through using the docs to solve the problem is a great idea that would be better suited for the std lib's homepage at https://doc.rust-lang.org/stable/std/index.html. There's a small section on "how to read this documentation", but it could be improved with a concrete example :)

cc @steveklabnik

Metadata

Metadata

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions