#3 [Example/Bug] Improve doc_example

Затворено
отворено пре 3 месеци од david · 0 коментара
David Thielemann коментирира пре 3 месеци

It doesn't have Person derive Debug to quickly print out the Person's fields (As such the println ends up doing what Debug would do, less clean)

It's a simple fix...

#[derive(Debug)]
struct Person {
  ...
}

Maybe moving the comment about not needing to derive Clone, or remove it as Clone is unneeded

It doesn't have Person derive Debug to quickly print out the Person's fields (As such the println ends up doing what Debug would do, less clean) It's a simple fix... ```rust #[derive(Debug)] struct Person { ... } ``` Maybe moving the comment about not needing to derive Clone, or remove it as Clone is unneeded
David Thielemann поменуо овај задатак у комит пре 3 месеци
david затворено пре 3 месеци
David Thielemann поменуо овај задатак у комит пре 3 месеци
Пријавите се да се прикључе у овом разговору.
Нема фазе
Нема одговорних
1 учесника
Учитавање...
Откажи
Сачувај
Још нема садржаја.