summaryrefslogtreecommitdiffstats
path: root/src/parser
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser')
-rw-r--r--src/parser/clang/entities.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/parser/clang/entities.rs b/src/parser/clang/entities.rs
index 54570d1..f0acea6 100644
--- a/src/parser/clang/entities.rs
+++ b/src/parser/clang/entities.rs
@@ -573,20 +573,11 @@ impl Namespace {
573 573
574impl KindName for Namespace { 574impl KindName for Namespace {
575 fn kind_name_singular(&self) -> &'static str { 575 fn kind_name_singular(&self) -> &'static str {
576 if self.global { 576 "namespace"
577 "global namespace"
578 } else {
579 "namespace"
580 }
581 } 577 }
582 578
583 fn kind_name_plural(&self) -> &'static str { 579 fn kind_name_plural(&self) -> &'static str {
584 if self.global { 580 "namespaces"
585 // TODO: probably panic here, branch should not happen
586 "global namespaces"
587 } else {
588 "namespaces"
589 }
590 } 581 }
591} 582}
592 583