File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ impl<'a> fmt::Show for WhereClause<'a> {
120
120
if gens. where_predicates . len ( ) == 0 {
121
121
return Ok ( ( ) ) ;
122
122
}
123
- try!( f. write ( " where " . as_bytes ( ) ) ) ;
123
+ try!( f. write ( " <span class='where'> where " . as_bytes ( ) ) ) ;
124
124
for ( i, pred) in gens. where_predicates . iter ( ) . enumerate ( ) {
125
125
if i > 0 {
126
126
try!( f. write ( ", " . as_bytes ( ) ) ) ;
@@ -146,6 +146,7 @@ impl<'a> fmt::Show for WhereClause<'a> {
146
146
}
147
147
}
148
148
}
149
+ try!( f. write ( "</span>" . as_bytes ( ) ) ) ;
149
150
Ok ( ( ) )
150
151
}
151
152
}
Original file line number Diff line number Diff line change @@ -306,6 +306,11 @@ nav.sub {
306
306
font-size : 1em ;
307
307
position : relative;
308
308
}
309
+ /* Shift "where ..." part of method definition down a line */
310
+ .content .method .where { display : block; }
311
+ /* Bit of whitespace to indent it */
312
+ .content .method .where ::before { content : ' ' ; }
313
+
309
314
.content .methods .docblock { margin-left : 40px ; }
310
315
311
316
.content .impl-items .docblock { margin-left : 40px ; }
You can’t perform that action at this time.
0 commit comments