docs: remove capitals and periods from errors
This commit is contained in:
4 files changed
+14
-14
No files matched your search
@@ -200,7 +200,7 @@ impl Parse for ComponentField {
|
|||||||
|
|
||||||
if input.peek(LitStr) && input.peek2(LitStr) {
|
if input.peek(LitStr) && input.peek2(LitStr) {
|
||||||
let item = input.parse::<LitStr>().unwrap();
|
let item = input.parse::<LitStr>().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()?);
|
let content = ContentField::ManExpr(input.parse()?);
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ impl Parse for Element {
|
|||||||
if content.parse::<Token![,]>().is_err() {
|
if content.parse::<Token![,]>().is_err() {
|
||||||
proc_macro_error::emit_error!(
|
proc_macro_error::emit_error!(
|
||||||
ident,
|
ident,
|
||||||
"This attribute is missing a trailing comma"
|
"this attribute is missing a trailing comma"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
@@ -128,7 +128,7 @@ impl Parse for Element {
|
|||||||
if content.parse::<Token![,]>().is_err() {
|
if content.parse::<Token![,]>().is_err() {
|
||||||
proc_macro_error::emit_error!(
|
proc_macro_error::emit_error!(
|
||||||
ident,
|
ident,
|
||||||
"This attribute is missing a trailing comma"
|
"this attribute is missing a trailing comma"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
@@ -142,9 +142,9 @@ impl Parse for Element {
|
|||||||
let ident = content.parse::<LitStr>().unwrap();
|
let ident = content.parse::<LitStr>().unwrap();
|
||||||
let name = ident.value();
|
let name = ident.value();
|
||||||
proc_macro_error::emit_error!(
|
proc_macro_error::emit_error!(
|
||||||
ident, "This attribute `{}` is in the wrong place.", name;
|
ident, "this attribute `{}` is in the wrong place", name;
|
||||||
help =
|
help =
|
||||||
"All attribute fields must be placed above children elements.
|
"all attribute fields must be placed above children elements
|
||||||
|
|
||||||
div {
|
div {
|
||||||
attr: \"...\", <---- attribute is above children
|
attr: \"...\", <---- attribute is above children
|
||||||
@@ -157,9 +157,9 @@ impl Parse for Element {
|
|||||||
let ident = content.parse::<Ident>().unwrap();
|
let ident = content.parse::<Ident>().unwrap();
|
||||||
let name = ident.to_string();
|
let name = ident.to_string();
|
||||||
proc_macro_error::emit_error!(
|
proc_macro_error::emit_error!(
|
||||||
ident, "This attribute `{}` is in the wrong place.", name;
|
ident, "this attribute `{}` is in the wrong place", name;
|
||||||
help =
|
help =
|
||||||
"All attribute fields must be placed above children elements.
|
"all attribute fields must be placed above children elements
|
||||||
|
|
||||||
div {
|
div {
|
||||||
attr: \"...\", <---- attribute is above children
|
attr: \"...\", <---- attribute is above children
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ impl Parse for ComponentField {
|
|||||||
|
|
||||||
if input.peek(LitStr) && input.peek2(LitStr) {
|
if input.peek(LitStr) && input.peek2(LitStr) {
|
||||||
let item = input.parse::<LitStr>().unwrap();
|
let item = input.parse::<LitStr>().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()?);
|
let content = ContentField::ManExpr(input.parse()?);
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ impl Parse for Element {
|
|||||||
if content.parse::<Token![,]>().is_err() {
|
if content.parse::<Token![,]>().is_err() {
|
||||||
proc_macro_error::emit_error!(
|
proc_macro_error::emit_error!(
|
||||||
ident,
|
ident,
|
||||||
"This attribute is missing a trailing comma"
|
"this attribute is missing a trailing comma"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
@@ -128,7 +128,7 @@ impl Parse for Element {
|
|||||||
if content.parse::<Token![,]>().is_err() {
|
if content.parse::<Token![,]>().is_err() {
|
||||||
proc_macro_error::emit_error!(
|
proc_macro_error::emit_error!(
|
||||||
ident,
|
ident,
|
||||||
"This attribute is missing a trailing comma"
|
"this attribute is missing a trailing comma"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
@@ -142,9 +142,9 @@ impl Parse for Element {
|
|||||||
let ident = content.parse::<LitStr>().unwrap();
|
let ident = content.parse::<LitStr>().unwrap();
|
||||||
let name = ident.value();
|
let name = ident.value();
|
||||||
proc_macro_error::emit_error!(
|
proc_macro_error::emit_error!(
|
||||||
ident, "This attribute `{}` is in the wrong place.", name;
|
ident, "this attribute `{}` is in the wrong place", name;
|
||||||
help =
|
help =
|
||||||
"All attribute fields must be placed above children elements.
|
"all attribute fields must be placed above children elements
|
||||||
|
|
||||||
div {
|
div {
|
||||||
attr: \"...\", <---- attribute is above children
|
attr: \"...\", <---- attribute is above children
|
||||||
@@ -157,9 +157,9 @@ impl Parse for Element {
|
|||||||
let ident = content.parse::<Ident>().unwrap();
|
let ident = content.parse::<Ident>().unwrap();
|
||||||
let name = ident.to_string();
|
let name = ident.to_string();
|
||||||
proc_macro_error::emit_error!(
|
proc_macro_error::emit_error!(
|
||||||
ident, "This attribute `{}` is in the wrong place.", name;
|
ident, "this attribute `{}` is in the wrong place", name;
|
||||||
help =
|
help =
|
||||||
"All attribute fields must be placed above children elements.
|
"all attribute fields must be placed above children elements
|
||||||
|
|
||||||
div {
|
div {
|
||||||
attr: \"...\", <---- attribute is above children
|
attr: \"...\", <---- attribute is above children
|
||||||
|
|||||||
Reference in new issue
Block a user