about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-11-20 16:11:06 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-11-20 16:11:06 +1100
commitb142ed296c2b1c4508cc62224e9ff154c03be08f (patch)
treea18766e726060f32f18d42ff18b5bb765774e6d4
parent6ba4c2f017434e4f26bdde5b05ef267f9467f7f8 (diff)
downloadrust-b142ed296c2b1c4508cc62224e9ff154c03be08f.tar.gz
rust-b142ed296c2b1c4508cc62224e9ff154c03be08f.zip
Add a comment.
-rw-r--r--compiler/rustc_hir/src/def.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_hir/src/def.rs b/compiler/rustc_hir/src/def.rs
index ed1dc751fba..1c046269781 100644
--- a/compiler/rustc_hir/src/def.rs
+++ b/compiler/rustc_hir/src/def.rs
@@ -591,6 +591,8 @@ impl NonMacroAttrKind {
         }
     }
 
+    // Currently trivial, but exists in case a new kind is added in the future whose name starts
+    // with a vowel.
     pub fn article(self) -> &'static str {
         "a"
     }