]> git.lizzy.rs Git - rust.git/commitdiff
fix typo
authorlcnr <rust@lcnr.de>
Tue, 10 May 2022 10:02:20 +0000 (12:02 +0200)
committerlcnr <rust@lcnr.de>
Tue, 10 May 2022 10:07:36 +0000 (12:07 +0200)
compiler/rustc_passes/src/diagnostic_items.rs

index 9cbb7917e9a32de6a84ddda1d55c548480f27d57..ed694eb0e327a1f247b15b8c2bbfcda89f5f7d5e 100644 (file)
@@ -83,7 +83,7 @@ fn collect_item(tcx: TyCtxt<'_>, items: &mut DiagnosticItems, name: Symbol, item
     }
 }
 
-/// Extract the first `rustc_diagnostic_item = "$name"` out of a list of attributes.p
+/// Extract the first `rustc_diagnostic_item = "$name"` out of a list of attributes.
 fn extract(attrs: &[ast::Attribute]) -> Option<Symbol> {
     attrs.iter().find_map(|attr| {
         if attr.has_name(sym::rustc_diagnostic_item) { attr.value_str() } else { None }