File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,17 @@ Modules can be mapped to a file/directory hierarchy. Let's break down the
6
6
``` shell
7
7
$ tree .
8
8
.
9
- | -- my
10
- | | -- inaccessible.rs
11
- | | -- mod .rs
12
- | ` -- nested .rs
13
- ` -- split.rs
9
+ ├── my
10
+ │ ├── inaccessible.rs
11
+ │ └── nested .rs
12
+ ├── my .rs
13
+ └── split.rs
14
14
```
15
15
16
16
In ` split.rs ` :
17
17
18
18
``` rust,ignore
19
- // This declaration will look for a file named `my.rs` or `my/mod.rs` and will
19
+ // This declaration will look for a file named `my.rs` and will
20
20
// insert its contents inside a module named `my` under this scope
21
21
mod my;
22
22
@@ -36,7 +36,7 @@ fn main() {
36
36
37
37
```
38
38
39
- In ` my/mod .rs ` :
39
+ In ` my.rs ` :
40
40
41
41
``` rust,ignore
42
42
// Similarly `mod inaccessible` and `mod nested` will locate the `nested.rs`
You can’t perform that action at this time.
0 commit comments