Skip to content

Commit 00c3de9

Browse files
Improve code documentation a bit
1 parent bd59fc6 commit 00c3de9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/render/print_item.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,8 @@ fn item_enum(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, e: &clean::
14471447
}
14481448

14491449
/// It'll return false if any variant is not a C-like variant. Otherwise it'll return true if at
1450-
/// least one of them has a value set or if the enum has `#[repr(C)]` or has an integer `repr`.
1450+
/// least one of them has an explicit discriminant or if the enum has `#[repr(C)]` or an integer
1451+
/// `repr`.
14511452
fn should_show_enum_discriminant(
14521453
cx: &Context<'_>,
14531454
enum_def_id: DefId,
@@ -1467,7 +1468,6 @@ fn should_show_enum_discriminant(
14671468
return true;
14681469
}
14691470
let repr = cx.tcx().adt_def(enum_def_id).repr();
1470-
// let repr = cx.tcx().repr_options_of_def(enum_def_id);
14711471
repr.c() || repr.int.is_some()
14721472
}
14731473

0 commit comments

Comments
 (0)