diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs index d25c4184f3c..60dae19d876 100644 --- a/src/librustdoc/html/format.rs +++ b/src/librustdoc/html/format.rs @@ -165,7 +165,7 @@ impl<'a> fmt::Display for WhereClause<'a> { if f.alternate() { clause.push_str(" where "); } else { - clause.push_str(" where "); + clause.push_str(" where "); } for (i, pred) in gens.where_predicates.iter().enumerate() { if i > 0 { @@ -208,10 +208,9 @@ impl<'a> fmt::Display for WhereClause<'a> { clause.push_str(""); let plain = format!("{:#}", self); if plain.len() + pad > 80 { - //break it onto its own line regardless, but make sure method impls and trait - //blocks keep their fixed padding (2 and 9, respectively) + // break it onto its own line regardless, but make sure method impls and trait + // blocks keep their fixed padding (2 and 9, respectively) let padding = if pad > 10 { - clause = clause.replace("class='where'", "class='where fmt-newline'"); repeat(" ").take(8).collect::() } else { repeat(" ").take(pad + 6).collect::()