better document purpose of Identifier
This commit is contained in:
parent
56a5abb05c
commit
558b49af6d
@ -105,6 +105,11 @@ impl ListSeparator {
|
||||
}
|
||||
}
|
||||
|
||||
/// In Sass, underscores and hyphens are considered equal
|
||||
/// when inside identifiers.
|
||||
///
|
||||
/// This struct protects that invariant by normalizing all
|
||||
/// underscores into hypens.
|
||||
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
|
||||
pub(crate) struct Identifier(String);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user