mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-12-26 21:58:49 +01:00
Fix links.
This commit is contained in:
parent
9bda4eb7e0
commit
e5eee2e83c
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
# The `Drop` trait
|
# The `Drop` trait
|
||||||
|
|
||||||
When we introduced [destructors](../../02_ticket_v1/11_destructor/README.md),
|
When we introduced [destructors](../03_ticket_v1/11_destructor),
|
||||||
we mentioned that the `drop` function:
|
we mentioned that the `drop` function:
|
||||||
|
|
||||||
1. reclaims the memory occupied by the type (i.e. `std::mem::size_of` bytes)
|
1. reclaims the memory occupied by the type (i.e. `std::mem::size_of` bytes)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Enumerations
|
# Enumerations
|
||||||
|
|
||||||
Based on the validation logic you wrote [in a previous chapter](../../02_ticket_v1/02_validation),
|
Based on the validation logic you wrote [in a previous chapter](../03_ticket_v1/02_validation),
|
||||||
there are only a few valid statuses for a ticket: `To-Do`, `InProgress` and `Done`.
|
there are only a few valid statuses for a ticket: `To-Do`, `InProgress` and `Done`.
|
||||||
This is not obvious if we look at the `status` field in the `Ticket` struct or at the type of the `status`
|
This is not obvious if we look at the `status` field in the `Ticket` struct or at the type of the `status`
|
||||||
parameter in the `new` method:
|
parameter in the `new` method:
|
||||||
|
|
Loading…
Reference in a new issue