Skip to content

Commit 3433498

Browse files
authored
Merge pull request #4287 from mianlang/fix-broken-link
Ch. 20: correct listing number
2 parents 21fcf73 + 1d1424b commit 3433498

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ch20-05-macros.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,10 @@ The `hello_macro_derive` function first converts the `input` from a
323323
`TokenStream` to a data structure that we can then interpret and perform
324324
operations on. This is where `syn` comes into play. The `parse` function in
325325
`syn` takes a `TokenStream` and returns a `DeriveInput` struct representing the
326-
parsed Rust code. Listing 20-40 shows the relevant parts of the `DeriveInput`
326+
parsed Rust code. Listing 20-41 shows the relevant parts of the `DeriveInput`
327327
struct we get from parsing the `struct Pancakes;` string.
328328

329-
<Listing number="20-40" caption="The `DeriveInput` instance we get when parsing the code that has the macro’s attribute in Listing 20-37">
329+
<Listing number="20-41" caption="The `DeriveInput` instance we get when parsing the code that has the macro’s attribute in Listing 20-37">
330330

331331
```rust,ignore
332332
DeriveInput {

0 commit comments

Comments
 (0)