fixup! attr valid: return whether attrs non-empty

This commit is contained in:
Noah Hellman 2023-01-31 21:13:39 +01:00
parent dc38076f50
commit 30351500bb

View file

@ -16,7 +16,7 @@ pub fn valid<I: Iterator<Item = char>>(chars: I) -> (usize, bool) {
for e in &mut p {
match e {
Element::Class(..) | Element::Identifier(..) | Element::Attribute(..) => {
has_attr = true
has_attr = true;
}
Element::Invalid => return (0, false),
}