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