Skip to content

Chapter 7.4 The part about "pub use" doesn't make isn't right #2766

@rempas

Description

@rempas

I'm talking about this part. In the book it talks about how use is local to a scope and not to a module. I'm just learning Rust and I couldn't find how this applies so I made my research and found out about the reference book that talks about use visibility being local to a module and nowhere the word scope appears. The example in the book also doesn't make any sense while the example in the reference book makes absolute sense about how use applies to modules and how pub use is used to make the name publicly available to other modules.

Unless I'm doing something wrong of course, like I said I'm just learning Rust and I just wanted to report that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions