Skip to content

Commit

Permalink
docs: add a missing example
Browse files Browse the repository at this point in the history
  • Loading branch information
Phosphorus-M authored May 2, 2024
1 parent 2f44626 commit 2b0787a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch10-02-traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ en su parámetro `item`, que es de algún tipo que implementa el trait `Summary`
Para hacer esto, usamos la sintaxis `impl Trait`, como esto:

```rust,ignore
{{#rustdoc_include ../listings/ch10-generic-types-traits-and-lifetimes/no-listing-04-traits-as-parameters/src/lib.rs:here}}
```

En lugar de un tipo concreto para el parámetro `item`, especificamos el
Expand Down

0 comments on commit 2b0787a

Please sign in to comment.