about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/render/print_item.rs4
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()
 }