Skip to content

Commit 1e24967

Browse files
committed
Fix print const on librustdoc
1 parent 9cc6744 commit 1e24967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ pub fn print_const(cx: &DocContext<'_>, n: &ty::Const<'_>) -> String {
465465
inline::print_inlined_const(cx, def_id)
466466
};
467467
if let Some(promoted) = promoted {
468-
s.push_str(&format!("{:?}", promoted))
468+
s.push_str(&format!("::{:?}", promoted))
469469
}
470470
s
471471
},

0 commit comments

Comments
 (0)