better document purpose of Identifier

This commit is contained in:
Connor Skees 2020-07-08 10:25:37 -04:00
parent 56a5abb05c
commit 558b49af6d

View File

@ -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);