From 0be88d20ee94cd9a122bc825fcd33e2ca2ca3f7a Mon Sep 17 00:00:00 2001 From: Ilya Maximov Date: Sat, 19 Mar 2022 19:28:38 +0100 Subject: [PATCH] docs: remove capitals and periods from errors --- packages/core-macro/src/rsx/component.rs | 2 +- packages/core-macro/src/rsx/element.rs | 12 ++++++------ packages/rsx/src/component.rs | 2 +- packages/rsx/src/element.rs | 12 ++++++------ 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/core-macro/src/rsx/component.rs b/packages/core-macro/src/rsx/component.rs index 17006e6ac..064e2dad6 100644 --- a/packages/core-macro/src/rsx/component.rs +++ b/packages/core-macro/src/rsx/component.rs @@ -200,7 +200,7 @@ impl Parse for ComponentField { if input.peek(LitStr) && input.peek2(LitStr) { let item = input.parse::().unwrap(); - proc_macro_error::emit_error!(item, "This attribute is missing a trailing comma") + proc_macro_error::emit_error!(item, "this attribute is missing a trailing comma") } let content = ContentField::ManExpr(input.parse()?); diff --git a/packages/core-macro/src/rsx/element.rs b/packages/core-macro/src/rsx/element.rs index fa8fc9f51..92aa949ce 100644 --- a/packages/core-macro/src/rsx/element.rs +++ b/packages/core-macro/src/rsx/element.rs @@ -67,7 +67,7 @@ impl Parse for Element { if content.parse::().is_err() { proc_macro_error::emit_error!( ident, - "This attribute is missing a trailing comma" + "this attribute is missing a trailing comma" ) } continue; @@ -128,7 +128,7 @@ impl Parse for Element { if content.parse::().is_err() { proc_macro_error::emit_error!( ident, - "This attribute is missing a trailing comma" + "this attribute is missing a trailing comma" ) } continue; @@ -142,9 +142,9 @@ impl Parse for Element { let ident = content.parse::().unwrap(); let name = ident.value(); proc_macro_error::emit_error!( - ident, "This attribute `{}` is in the wrong place.", name; + ident, "this attribute `{}` is in the wrong place", name; help = -"All attribute fields must be placed above children elements. +"all attribute fields must be placed above children elements div { attr: \"...\", <---- attribute is above children @@ -157,9 +157,9 @@ impl Parse for Element { let ident = content.parse::().unwrap(); let name = ident.to_string(); proc_macro_error::emit_error!( - ident, "This attribute `{}` is in the wrong place.", name; + ident, "this attribute `{}` is in the wrong place", name; help = -"All attribute fields must be placed above children elements. +"all attribute fields must be placed above children elements div { attr: \"...\", <---- attribute is above children diff --git a/packages/rsx/src/component.rs b/packages/rsx/src/component.rs index 17006e6ac..064e2dad6 100644 --- a/packages/rsx/src/component.rs +++ b/packages/rsx/src/component.rs @@ -200,7 +200,7 @@ impl Parse for ComponentField { if input.peek(LitStr) && input.peek2(LitStr) { let item = input.parse::().unwrap(); - proc_macro_error::emit_error!(item, "This attribute is missing a trailing comma") + proc_macro_error::emit_error!(item, "this attribute is missing a trailing comma") } let content = ContentField::ManExpr(input.parse()?); diff --git a/packages/rsx/src/element.rs b/packages/rsx/src/element.rs index fa8fc9f51..92aa949ce 100644 --- a/packages/rsx/src/element.rs +++ b/packages/rsx/src/element.rs @@ -67,7 +67,7 @@ impl Parse for Element { if content.parse::().is_err() { proc_macro_error::emit_error!( ident, - "This attribute is missing a trailing comma" + "this attribute is missing a trailing comma" ) } continue; @@ -128,7 +128,7 @@ impl Parse for Element { if content.parse::().is_err() { proc_macro_error::emit_error!( ident, - "This attribute is missing a trailing comma" + "this attribute is missing a trailing comma" ) } continue; @@ -142,9 +142,9 @@ impl Parse for Element { let ident = content.parse::().unwrap(); let name = ident.value(); proc_macro_error::emit_error!( - ident, "This attribute `{}` is in the wrong place.", name; + ident, "this attribute `{}` is in the wrong place", name; help = -"All attribute fields must be placed above children elements. +"all attribute fields must be placed above children elements div { attr: \"...\", <---- attribute is above children @@ -157,9 +157,9 @@ impl Parse for Element { let ident = content.parse::().unwrap(); let name = ident.to_string(); proc_macro_error::emit_error!( - ident, "This attribute `{}` is in the wrong place.", name; + ident, "this attribute `{}` is in the wrong place", name; help = -"All attribute fields must be placed above children elements. +"all attribute fields must be placed above children elements div { attr: \"...\", <---- attribute is above children