#3 [Example/Bug] Improve doc_example

クローズ
3 ヶ月 前david によって開かれました · 0 コメント
David Thielemann3 ヶ月 前 にコメントしました

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 参加者
読み込み中…
キャンセル
保存
まだコンテンツがありません