Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
max-heller authored Dec 31, 2024
1 parent 04d06df commit 70cbae6
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 70cbae6

Please sign in to comment.