Skip to content

Commit

Permalink
chore: document name special handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ten3roberts committed Oct 15, 2023
1 parent 30843f7 commit 2fd4fd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ use crate::component::ComponentDesc;
use crate::Debuggable;

component! {
/// A name for an entity of component
/// An opinionated name component, so that different libraries can agree on a "name" or "label"
/// kind of component.
///
/// This name will be used in *Display* and *Debug* impls of entities to make them more readable, as opposed to just the id.
pub name: String => [ Debuggable ],
/// Exclusive parent-child relation ship.
///
Expand Down

0 comments on commit 2fd4fd7

Please sign in to comment.