Skip to content

Commit a9de4f1

Browse files
spastorinooli-obk
authored andcommitted
Fix print const on librustdoc
1 parent 5d9b399 commit a9de4f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ pub fn print_const(cx: &DocContext<'_>, n: &ty::Const<'_>) -> String {
467467
inline::print_inlined_const(cx, def_id)
468468
};
469469
if let Some(promoted) = promoted {
470-
s.push_str(&format!("{:?}", promoted))
470+
s.push_str(&format!("::{:?}", promoted))
471471
}
472472
s
473473
}

0 commit comments

Comments
 (0)