Fix print const on librustdoc
This commit is contained in:
committed by
Oliver Scherer
parent
5d9b399044
commit
a9de4f11ed
@@ -467,7 +467,7 @@ pub fn print_const(cx: &DocContext<'_>, n: &ty::Const<'_>) -> String {
|
|||||||
inline::print_inlined_const(cx, def_id)
|
inline::print_inlined_const(cx, def_id)
|
||||||
};
|
};
|
||||||
if let Some(promoted) = promoted {
|
if let Some(promoted) = promoted {
|
||||||
s.push_str(&format!("{:?}", promoted))
|
s.push_str(&format!("::{:?}", promoted))
|
||||||
}
|
}
|
||||||
s
|
s
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user