about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-04-04 10:45:46 +0200
committerlcnr <rust@lcnr.de>2022-05-10 08:09:37 +0200
commitb618cdb224963cea9ddddda8ea8a7f11f1b2d9a6 (patch)
treee153a8448df29b8d0cc42bb60dd5e040297443ef
parent74b6d296dbcdece2b7bf8cf10370c17c0ed564e7 (diff)
downloadrust-b618cdb224963cea9ddddda8ea8a7f11f1b2d9a6.tar.gz
rust-b618cdb224963cea9ddddda8ea8a7f11f1b2d9a6.zip
fix comment
-rw-r--r--compiler/rustc_middle/src/ty/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs
index 722257f9c5e..4bd4f6428c6 100644
--- a/compiler/rustc_middle/src/ty/mod.rs
+++ b/compiler/rustc_middle/src/ty/mod.rs
@@ -2188,9 +2188,9 @@ impl<'tcx> TyCtxt<'tcx> {
 
     /// Gets the attributes of a definition.
     ///
-    /// Note that attributes which are be relevant while
-    /// the current local crate are not stored in the crate metadata
-    /// and therefore cannot be accessed outside of that crate.
+    /// Note that attributes which are only relevant for the current
+    /// crate are not stored in the crate metadata and therefore cannot
+    /// be accessed outside of that crate.
     pub fn get_attrs(self, did: DefId) -> Attributes<'tcx> {
         if let Some(did) = did.as_local() {
             self.hir().attrs(self.hir().local_def_id_to_hir_id(did))