change casing of expected in modifier error

This commit is contained in:
ConnorSkees 2020-04-02 21:51:55 -04:00
parent 476578cdc6
commit c1d79047f2
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ impl Attribute {
devour_whitespace(toks); devour_whitespace(toks);
let kind = match toks.next().ok_or("expected \"{\".")?.kind { 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 { return Ok(SelectorKind::Attribute(Attribute {
kind: AttributeKind::Any, kind: AttributeKind::Any,

View File

@ -321,5 +321,5 @@ test!(escaped_space, "a\\ b {\n color: foo;\n}\n");
error!( error!(
modifier_on_any_attr, modifier_on_any_attr,
"[attr i] {color: foo;}", "[attr i] {color: foo;}",
"Error: expected \"]\"." "Error: Expected \"]\"."
); );