Skip to content

Commit

Permalink
mention 2018 rationale
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
  • Loading branch information
RalfJung and joshtriplett authored Feb 26, 2025
1 parent 508d2db commit c8ad659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Module Path | Filesystem Path | File Contents
`crate::util::config` | `util/config.rs` |

> **Note**: Prior to `rustc` 1.30, using `mod.rs` files was the only way to load
> a module with nested children.
> a module with nested children. Rust 2018 added the new naming convention to be more consistent with modules that don't have submodules, and to avoid having many files named `mod.rs`.
### The `path` attribute

Expand Down

0 comments on commit c8ad659

Please sign in to comment.