Skip to content

Commit

Permalink
Document name
Browse files Browse the repository at this point in the history
  • Loading branch information
snowsignal authored and Lucretiel committed Jun 17, 2023
1 parent 705d5b4 commit a0dadc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/rust_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ pub enum FieldDecorator {
}

impl FieldDecorator {
/// Returns the name of the field decorator. For a word decorator, this is just the identifier.
pub fn name(&self) -> &str {
match self {
Self::Word(name) | Self::NameValue(name, _) => &name,
Self::Word(name) | Self::NameValue(name, _) => name,
}
}
}
Expand Down

0 comments on commit a0dadc1

Please sign in to comment.