From c1d79047f2cdcc6e2938d56e09305e326e7f9599 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Thu, 2 Apr 2020 21:51:55 -0400 Subject: [PATCH] change casing of expected in modifier error --- src/selector/attribute.rs | 2 +- tests/selectors.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/selector/attribute.rs b/src/selector/attribute.rs index 2bb6cc5..23be1c8 100644 --- a/src/selector/attribute.rs +++ b/src/selector/attribute.rs @@ -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, diff --git a/tests/selectors.rs b/tests/selectors.rs index a020cf0..60756d4 100644 --- a/tests/selectors.rs +++ b/tests/selectors.rs @@ -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 \"]\"." ); \ No newline at end of file