Skip to content

Commit 2765fda

Browse files
authored
Fix reference to supertrait syntax in 09_error_trait.md (mainmatter#124)
The [Error trait](https://rust-exercises.com/100-exercises/05_ticket_v2/09_error_trait.html?highlight=supertrait#the-error-trait) chapter states that the reader may recall the supertrait syntax from the [Sized trait](https://rust-exercises.com/100-exercises/04_traits/08_sized) chapter. Actually the syntax is introduced in the [From and Into](https://rust-exercises.com/100-exercises/04_traits/09_from) chapter instead. This PR amends the text accordingly.
1 parent 96f0670 commit 2765fda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/src/05_ticket_v2/09_error_trait.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ that implements the `Error` trait.
2222
pub trait Error: Debug + Display {}
2323
```
2424

25-
You might recall the `:` syntax from [the `Sized` trait](../04_traits/08_sized.md)—it's used to specify **supertraits**.
25+
You might recall the `:` syntax from [the `From` trait](../04_traits/09_from.md#supertrait--subtrait)—it's used to specify **supertraits**.
2626
For `Error`, there are two supertraits: `Debug` and `Display`. If a type wants to implement `Error`, it must also
2727
implement `Debug` and `Display`.
2828

0 commit comments

Comments
 (0)