diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-10-11 23:46:11 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-10-11 23:46:11 +0200 |
| commit | 00c3de96e689d4b20be218692f88f8afa88ced87 (patch) | |
| tree | cf8be2e07cd3b8764dce54a56bb5a05d5246fd79 | |
| parent | bd59fc603f57f9cf9f8bae4ddfdf79a883129e76 (diff) | |
Improve code documentation a bit
| -rw-r--r-- | src/librustdoc/html/render/print_item.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs index 3873a3f3522..cd31493bf3f 100644 --- a/src/librustdoc/html/render/print_item.rs +++ b/src/librustdoc/html/render/print_item.rs @@ -1447,7 +1447,8 @@ fn item_enum(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, e: &clean:: } /// It'll return false if any variant is not a C-like variant. Otherwise it'll return true if at -/// least one of them has a value set or if the enum has `#[repr(C)]` or has an integer `repr`. +/// least one of them has an explicit discriminant or if the enum has `#[repr(C)]` or an integer +/// `repr`. fn should_show_enum_discriminant( cx: &Context<'_>, enum_def_id: DefId, @@ -1467,7 +1468,6 @@ fn should_show_enum_discriminant( return true; } let repr = cx.tcx().adt_def(enum_def_id).repr(); - // let repr = cx.tcx().repr_options_of_def(enum_def_id); repr.c() || repr.int.is_some() } |
