#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 Thielemann згадано цю проблему в коміті 3 місяців тому
Підпишіться щоб приєднатися до обговорення.
Етап відсутній
Немає відповідального
1 учасників
Завантажується...
Скасувати
Зберегти
Тут ще немає жодного вмісту.