diff --git a/src/ch10-02-traits.md b/src/ch10-02-traits.md index 9965f6fb7..d83bd2147 100644 --- a/src/ch10-02-traits.md +++ b/src/ch10-02-traits.md @@ -142,7 +142,7 @@ Now we are able to call the `print_anything` function from Listing 10-6 and pass it a `Temperature` instance as the `value` parameter, since we implemented the trait `Printable` on `Temperature` in Listing 10-5: -``` +```rust # trait Printable { # fn print(&self); # }