Skip to content

Commit

Permalink
Merge pull request #3924 from davidkurilla/infra-convert-listing-in-c…
Browse files Browse the repository at this point in the history
…h01-03

Convert ch01-03-hello-cargo.md Listing 1-2 using `<Listing>`
  • Loading branch information
chriskrycho committed May 16, 2024
2 parents 71267c0 + b539e27 commit 5e9051f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ch01-03-hello-cargo.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ repository; you can override this behavior by using `cargo new --vcs=git`.
Open *Cargo.toml* in your text editor of choice. It should look similar to the
code in Listing 1-2.

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

```toml
[package]
Expand All @@ -71,8 +71,7 @@ edition = "2021"
[dependencies]
```

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

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

0 comments on commit 5e9051f

Please sign in to comment.