Skip to content

Commit 8a4970d

Browse files
authored
doc(modules): Remove module style recommendation
1 parent d4c66b3 commit 8a4970d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/items/modules.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ contents in a file named `mod.rs` within that directory. The above example can
8181
alternately be expressed with `crate::util`'s contents in a file named
8282
`util/mod.rs`. It is not allowed to have both `util.rs` and `util/mod.rs`.
8383

84-
> [!NOTE]
85-
> Prior to `rustc` 1.30, using `mod.rs` files was the way to load a module with nested children. It is encouraged to use the new naming convention as it is more consistent, and avoids having many files named `mod.rs` within a project.
86-
8784
r[items.mod.outlined.path]
8885
### The `path` attribute
8986

0 commit comments

Comments
 (0)