1
Fork 0

Add hyphen to "crate level"

"crate level attribute" -> "crate-level attribute"
This commit is contained in:
Camelid 2021-03-13 14:32:06 -08:00
parent fe64970ed1
commit 5134047c40
6 changed files with 9 additions and 9 deletions

View file

@ -520,7 +520,7 @@ impl CheckAttrVisitor<'tcx> {
.struct_span_err(
meta.span(),
&format!(
"`#![doc({} = \"...\")]` isn't allowed as a crate level attribute",
"`#![doc({} = \"...\")]` isn't allowed as a crate-level attribute",
attr_name,
),
)
@ -559,7 +559,7 @@ impl CheckAttrVisitor<'tcx> {
|lint| {
lint.build(
"`#![doc(test(...)]` is only allowed \
as a crate level attribute",
as a crate-level attribute",
)
.emit();
},