Rollup merge of #112927 - GuillaumeGomez:where-clause-indent, r=notriddle
Fix indentation for where clause in rustdoc pages Screenshot of the bug:  I used this opportunity to clarify the code a bit because some weird things were going on. r? ````@notriddle````
This commit is contained in:
commit
3feee9f1f2
9 changed files with 34 additions and 8 deletions
|
@ -860,8 +860,8 @@ fn assoc_method(
|
|||
w.reserve(header_len + "<a href=\"\" class=\"fn\">{".len() + "</a>".len());
|
||||
write!(
|
||||
w,
|
||||
"{indent}{vis}{constness}{asyncness}{unsafety}{defaultness}{abi}fn <a{href} class=\"fn\">{name}</a>\
|
||||
{generics}{decl}{notable_traits}{where_clause}",
|
||||
"{indent}{vis}{constness}{asyncness}{unsafety}{defaultness}{abi}fn \
|
||||
<a{href} class=\"fn\">{name}</a>{generics}{decl}{notable_traits}{where_clause}",
|
||||
indent = indent_str,
|
||||
vis = vis,
|
||||
constness = constness,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue