google / google/comprehensive-rust
Somewhat unclear/wrong information about paths and modules
Open
- Dominant language
- Rust
- Stars
- 33.4k
- Forks
- 2.1k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 10
Description
In chapter Modules / Filesystem Hierarchy there is:
`mod garden`;
> This tells Rust that the garden module content is found at src/garden.rs. Similarly, a garden::vegetables module
> can be found at src/garden/vegetables.rs.
Which might imply that
`mod garden::vegetables;`
can be used, which is not true, to use such layout:
> src/garden/vegetables.rs
a more complex setup is required.
Contributor guide
Assessment
This issue has not been assessed yet.