diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs
index 11d40d9898c08..58c609cf252cf 100644
--- a/src/librustdoc/html/format.rs
+++ b/src/librustdoc/html/format.rs
@@ -1277,7 +1277,7 @@ crate fn print_constness_with_space(
s: Option<&ConstStability>,
) -> &'static str {
match (c, s) {
- // const stable or no stability attribute
+ // const stable or when feature(staged_api) is not set
(
hir::Constness::Const,
Some(ConstStability { level: StabilityLevel::Stable { .. }, .. }),