Add hyphen to "crate level"
"crate level attribute" -> "crate-level attribute"
This commit is contained in:
parent
fe64970ed1
commit
5134047c40
6 changed files with 9 additions and 9 deletions
|
@ -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();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue