#3 [Example/Bug] Improve doc_example

Cerrada
abierta hace 1 mes por david · 0 comentarios

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 mencionada esta incidencia en un commit hace 1 mes
David Thielemann mencionada esta incidencia en un commit hace 1 mes
Inicie sesión para unirse a esta conversación.
Sin Milestone
Sin asignado
1 participantes
Cargando...
Cancelar
Guardar
Aún no existe contenido.