Rename Res::kind_name to Res::descr for consistency

This commit is contained in:
Vadim Petrochenkov 2019-05-04 15:22:00 +03:00
parent 917a0fbc1b
commit 85ddd1dc58
8 changed files with 17 additions and 17 deletions

View file

@ -370,7 +370,7 @@ impl<Id> Res<Id> {
}
/// A human readable name for the res kind ("function", "module", etc.).
pub fn kind_name(&self) -> &'static str {
pub fn descr(&self) -> &'static str {
match *self {
Res::Def(kind, _) => kind.descr(),
Res::SelfCtor(..) => "self constructor",