diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs
index 11d40d9898c0..58c609cf252c 100644
--- a/src/librustdoc/html/format.rs
+++ b/src/librustdoc/html/format.rs
@@ -1277,7 +1277,7 @@ fn print_with_space(&self) -> &str {
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 { .. }, .. }),