Skip to content

Commit 5e9051f

Browse files
authored
Merge pull request #3924 from davidkurilla/infra-convert-listing-in-ch01-03
Convert ch01-03-hello-cargo.md Listing 1-2 using `<Listing>`
2 parents 71267c0 + b539e27 commit 5e9051f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ch01-03-hello-cargo.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ repository; you can override this behavior by using `cargo new --vcs=git`.
5858
Open *Cargo.toml* in your text editor of choice. It should look similar to the
5959
code in Listing 1-2.
6060

61-
<span class="filename">Filename: Cargo.toml</span>
61+
<Listing number="1-2" file-name="Cargo.toml" caption="Contents of *Cargo.toml* generated by `cargo new`">
6262

6363
```toml
6464
[package]
@@ -71,8 +71,7 @@ edition = "2021"
7171
[dependencies]
7272
```
7373

74-
<span class="caption">Listing 1-2: Contents of *Cargo.toml* generated by `cargo
75-
new`</span>
74+
</Listing>
7675

7776
This file is in the [*TOML*][toml]<!-- ignore --> (*Tom’s Obvious, Minimal
7877
Language*) format, which is Cargo’s configuration format.

0 commit comments

Comments
 (0)