mirror of
https://github.com/rust-lang/book.git
synced 2026-05-19 01:10:06 -04:00
Converted Listing 7-1 into <Listing>
This commit is contained in:
@@ -114,14 +114,13 @@ restaurant --lib`. Then enter the code in Listing 7-1 into *src/lib.rs* to
|
||||
define some modules and function signatures; this code is the front of house
|
||||
section.
|
||||
|
||||
<span class="filename">Filename: src/lib.rs</span>
|
||||
<Listing number="7-1" file-name="src/lib.rs" caption="A `front_of_house` module containing other modules that then contain functions">
|
||||
|
||||
```rust,noplayground
|
||||
{{#rustdoc_include ../listings/ch07-managing-growing-projects/listing-07-01/src/lib.rs}}
|
||||
```
|
||||
|
||||
<span class="caption">Listing 7-1: A `front_of_house` module containing other
|
||||
modules that then contain functions</span>
|
||||
</Listing>
|
||||
|
||||
We define a module with the `mod` keyword followed by the name of the module
|
||||
(in this case, `front_of_house`). The body of the module then goes inside curly
|
||||
|
||||
Reference in New Issue
Block a user