From 53b7c6faedb6cf92df6cbe8061ec602fd1f4b098 Mon Sep 17 00:00:00 2001
From: David Kurilla <130074511+davidkurilla@users.noreply.github.com>
Date: Wed, 15 May 2024 18:09:30 -0700
Subject: [PATCH 1/3] infra: convert listing 1-2 using
---
src/ch01-03-hello-cargo.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/ch01-03-hello-cargo.md b/src/ch01-03-hello-cargo.md
index 42cd0889c8..83f4b17a34 100644
--- a/src/ch01-03-hello-cargo.md
+++ b/src/ch01-03-hello-cargo.md
@@ -58,7 +58,8 @@ 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.
-Filename: Cargo.toml
+
```toml
[package]
@@ -71,8 +72,7 @@ edition = "2021"
[dependencies]
```
-Listing 1-2: Contents of *Cargo.toml* generated by `cargo
-new`
+
This file is in the [*TOML*][toml] (*Tom’s Obvious, Minimal
Language*) format, which is Cargo’s configuration format.
From dd30faab70745f0e3c527eb7ff4c209cb5419dd4 Mon Sep 17 00:00:00 2001
From: David Kurilla <130074511+davidkurilla@users.noreply.github.com>
Date: Wed, 15 May 2024 18:37:00 -0700
Subject: [PATCH 2/3] Update ch01-03-hello-cargo.md
---
src/ch01-03-hello-cargo.md | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/ch01-03-hello-cargo.md b/src/ch01-03-hello-cargo.md
index 83f4b17a34..9ba2f83912 100644
--- a/src/ch01-03-hello-cargo.md
+++ b/src/ch01-03-hello-cargo.md
@@ -58,8 +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.
-
+
```toml
[package]
From b539e27d71045846693cf49958d348f6cffc79cb Mon Sep 17 00:00:00 2001
From: Chris Krycho
Date: Thu, 16 May 2024 08:54:47 -0600
Subject: [PATCH 3/3] Drop extra text from `Listing[caption]`
---
src/ch01-03-hello-cargo.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ch01-03-hello-cargo.md b/src/ch01-03-hello-cargo.md
index 9ba2f83912..5750e4f015 100644
--- a/src/ch01-03-hello-cargo.md
+++ b/src/ch01-03-hello-cargo.md
@@ -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.
-
+
```toml
[package]