Fix print const on librustdoc
This commit is contained in:
parent
5d9b399044
commit
a9de4f11ed
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ pub fn print_const(cx: &DocContext<'_>, n: &ty::Const<'_>) -> String {
|
|||
inline::print_inlined_const(cx, def_id)
|
||||
};
|
||||
if let Some(promoted) = promoted {
|
||||
s.push_str(&format!("{:?}", promoted))
|
||||
s.push_str(&format!("::{:?}", promoted))
|
||||
}
|
||||
s
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue