1
Fork 0

Changes to RustDoc

This commit is contained in:
Nick Cameron 2014-12-24 22:34:57 +13:00
parent 4688aadfde
commit c4640a2a69
7 changed files with 34 additions and 56 deletions

View file

@ -1679,9 +1679,6 @@ fn item_function(w: &mut fmt::Formatter, it: &clean::Item,
fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
t: &clean::Trait) -> fmt::Result {
let mut bounds = String::new();
if let Some(ref ty) = t.default_unbound {
bounds.push_str(format!(" for {}?", ty).as_slice());
}
if t.bounds.len() > 0 {
if bounds.len() > 0 {
bounds.push(' ');