mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-12-25 21:58:26 +01:00
Remove ambiguity in 03/07 exercise mandate.
This commit is contained in:
parent
f645b500c4
commit
2477f72adc
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
// TODO: Add &mut-setters to the `Ticket` struct for each of its fields.
|
// TODO: Add &mut-setters to the `Ticket` struct for each of its fields.
|
||||||
// Make sure to enforce the same validation rules you have in `Ticket::new`!
|
// Make sure to enforce the same validation rules you have in `Ticket::new`!
|
||||||
// Even better, extract that logic into private methods and reuse it in both places.
|
// Even better, extract that logic and reuse it in both places. You can use
|
||||||
|
// private functions or private static methods for that.
|
||||||
|
|
||||||
pub struct Ticket {
|
pub struct Ticket {
|
||||||
title: String,
|
title: String,
|
||||||
|
|
Loading…
Reference in a new issue