mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-04-05 19:28:04 +08:00
Update ch07-02-defining-modules-to-control-scope-and-privacy.md
"Filename"改为"文件名"
This commit is contained in:
parent
457194bc62
commit
d40c8fa388
@ -40,7 +40,7 @@ backyard
|
||||
|
||||
这个例子中的crate根文件是*src/main.rs*,该文件包括了:
|
||||
|
||||
<span class="filename">Filename: src/main.rs</span>
|
||||
<span class="filename">文件名: src/main.rs</span>
|
||||
|
||||
```rust,noplayground,ignore
|
||||
{{#rustdoc_include ../listings/ch07-managing-growing-projects/quick-reference-example/src/main.rs}}
|
||||
@ -48,7 +48,7 @@ backyard
|
||||
|
||||
`pub mod garden;`行告诉编译器应该包含在*src/garden.rs*文件中发现的代码:
|
||||
|
||||
<span class="filename">Filename: src/garden.rs</span>
|
||||
<span class="filename">文件名: src/garden.rs</span>
|
||||
|
||||
```rust,noplayground,ignore
|
||||
{{#rustdoc_include ../listings/ch07-managing-growing-projects/quick-reference-example/src/garden.rs}}
|
||||
|
Loading…
Reference in New Issue
Block a user