change casing of expected in modifier error
This commit is contained in:
parent
476578cdc6
commit
c1d79047f2
@ -42,7 +42,7 @@ impl Attribute {
|
||||
devour_whitespace(toks);
|
||||
|
||||
let kind = match toks.next().ok_or("expected \"{\".")?.kind {
|
||||
c if is_ident_char(c) => return Err("expected \"]\".".into()),
|
||||
c if is_ident_char(c) => return Err("Expected \"]\".".into()),
|
||||
']' => {
|
||||
return Ok(SelectorKind::Attribute(Attribute {
|
||||
kind: AttributeKind::Any,
|
||||
|
@ -321,5 +321,5 @@ test!(escaped_space, "a\\ b {\n color: foo;\n}\n");
|
||||
error!(
|
||||
modifier_on_any_attr,
|
||||
"[attr i] {color: foo;}",
|
||||
"Error: expected \"]\"."
|
||||
"Error: Expected \"]\"."
|
||||
);
|
Loading…
x
Reference in New Issue
Block a user