Skip to content

Commit

Permalink
Merge pull request #4184 from max-heller/patch-1
Browse files Browse the repository at this point in the history
fix typo in Listing invocation for listing 20-14
  • Loading branch information
chriskrycho authored Jan 6, 2025
2 parents 04d06df + 70cbae6 commit 916af4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch20-03-advanced-traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ the `Item` type is `u32`:
This syntax seems comparable to that of generics. So why not just define the
`Iterator` trait with generics, as shown in Listing 20-14?

<Listing number="20-14" number="A hypothetical definition of the `Iterator` trait using generics">
<Listing number="20-14" caption="A hypothetical definition of the `Iterator` trait using generics">

```rust,noplayground
{{#rustdoc_include ../listings/ch20-advanced-features/listing-20-14/src/lib.rs}}
Expand Down

0 comments on commit 916af4c

Please sign in to comment.