mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Tweak descr
for AnonConst
and fix article
for Use
and ExternCrate
.
This commit is contained in:
parent
95b3c427d4
commit
18be5a08a2
@ -128,7 +128,7 @@ impl DefKind {
|
|||||||
DefKind::LifetimeParam => "lifetime parameter",
|
DefKind::LifetimeParam => "lifetime parameter",
|
||||||
DefKind::Use => "import",
|
DefKind::Use => "import",
|
||||||
DefKind::ForeignMod => "foreign module",
|
DefKind::ForeignMod => "foreign module",
|
||||||
DefKind::AnonConst => "anonymous constant",
|
DefKind::AnonConst => "constant expression",
|
||||||
DefKind::Field => "field",
|
DefKind::Field => "field",
|
||||||
DefKind::Impl => "implementation",
|
DefKind::Impl => "implementation",
|
||||||
DefKind::Closure => "closure",
|
DefKind::Closure => "closure",
|
||||||
@ -147,8 +147,9 @@ impl DefKind {
|
|||||||
| DefKind::AssocFn
|
| DefKind::AssocFn
|
||||||
| DefKind::Enum
|
| DefKind::Enum
|
||||||
| DefKind::OpaqueTy
|
| DefKind::OpaqueTy
|
||||||
| DefKind::AnonConst
|
| DefKind::Impl
|
||||||
| DefKind::Impl => "an",
|
| DefKind::Use
|
||||||
|
| DefKind::ExternCrate => "an",
|
||||||
DefKind::Macro(macro_kind) => macro_kind.article(),
|
DefKind::Macro(macro_kind) => macro_kind.article(),
|
||||||
_ => "a",
|
_ => "a",
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user