Skip to content

Commit b618cdb

Browse files
committed
fix comment
1 parent 74b6d29 commit b618cdb

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+3
-3
lines changed

compiler/rustc_middle/src/ty/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,9 +2188,9 @@ impl<'tcx> TyCtxt<'tcx> {
21882188

21892189
/// Gets the attributes of a definition.
21902190
///
2191-
/// Note that attributes which are be relevant while
2192-
/// the current local crate are not stored in the crate metadata
2193-
/// and therefore cannot be accessed outside of that crate.
2191+
/// Note that attributes which are only relevant for the current
2192+
/// crate are not stored in the crate metadata and therefore cannot
2193+
/// be accessed outside of that crate.
21942194
pub fn get_attrs(self, did: DefId) -> Attributes<'tcx> {
21952195
if let Some(did) = did.as_local() {
21962196
self.hir().attrs(self.hir().local_def_id_to_hir_id(did))

0 commit comments

Comments
 (0)