Skip to content

Clarification: "io library" wording may be confusing (std::io is a module) #389

@BigOtron

Description

@BigOtron

Hello,

While reading Chapter 2 of the Rust Book, I noticed the following wording:

"The io library comes from the standard library, known as std."

For beginners this may be slightly confusing because std::io is technically a module inside the std crate, rather than a separate library.

The actual hierarchy is:

std (crate)
└── io (module)

It might help clarity if the text said something like:

"The io module comes from the standard library crate std."

I understand that the current wording may be intentionally simplified for beginners, but this small clarification could help readers who are trying to understand Rust’s module system.

Thanks for the excellent documentation!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions