#3 [Example/Bug] Improve doc_example

닫힘
david3 달 전을 오픈 · 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 3 달 전가 Close
David Thielemann 커밋 3 달 전에서 이 이슈 언급
로그인하여 이 대화에 참여
마일스톤 없음
담당자 없음
참여자 1명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.