Skip to content

Commit

Permalink
Fix print const on librustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino authored and oli-obk committed Jan 10, 2020
1 parent 5d9b399 commit a9de4f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/clean/utils.rs
Expand Up @@ -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
}
Expand Down

0 comments on commit a9de4f1

Please sign in to comment.