Skip to content

Commit 02cc850

Browse files
lucas-deangelisJoshua Nelson
and
Joshua Nelson
authored
Update src/librustdoc/passes/collect_intra_doc_links.rs
Co-authored-by: Joshua Nelson <[email protected]>
1 parent d95b7b3 commit 02cc850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/passes/collect_intra_doc_links.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
838838
debug!("looking for the `Self` type");
839839
let self_id = if item.is_fake() {
840840
None
841-
// Checking if the item is a field in a variant in an enum
841+
// Checking if the item is a field in an enum variant
842842
} else if (matches!(self.cx.tcx.def_kind(item.def_id), DefKind::Field)
843843
&& matches!(
844844
self.cx.tcx.def_kind(self.cx.tcx.parent(item.def_id).unwrap()),

0 commit comments

Comments
 (0)