@@ -864,7 +864,7 @@ fn item_union(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, s: &clean::Uni
864
864
if fields. peek ( ) . is_some ( ) {
865
865
write ! (
866
866
w,
867
- "<h2 id=\" fields\" class=\" fields small-section-header\" >
867
+ "<h2 id=\" fields\" class=\" fields small-section-header\" >\
868
868
Fields<a href=\" #fields\" class=\" anchor\" ></a></h2>"
869
869
) ;
870
870
for ( field, ty) in fields {
@@ -953,8 +953,8 @@ fn item_enum(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, e: &clean::Enum
953
953
if !e. variants . is_empty ( ) {
954
954
write ! (
955
955
w,
956
- "<h2 id=\" variants\" class=\" variants small-section-header\" >
957
- Variants{}<a href=\" #variants\" class=\" anchor\" ></a></h2>\n " ,
956
+ "<h2 id=\" variants\" class=\" variants small-section-header\" >\
957
+ Variants{}<a href=\" #variants\" class=\" anchor\" ></a></h2>",
958
958
document_non_exhaustive_header( it)
959
959
) ;
960
960
document_non_exhaustive ( w, it) ;
@@ -1139,7 +1139,7 @@ fn item_struct(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, s: &clean::St
1139
1139
if fields. peek ( ) . is_some ( ) {
1140
1140
write ! (
1141
1141
w,
1142
- "<h2 id=\" fields\" class=\" fields small-section-header\" >
1142
+ "<h2 id=\" fields\" class=\" fields small-section-header\" >\
1143
1143
Fields{}<a href=\" #fields\" class=\" anchor\" ></a></h2>",
1144
1144
document_non_exhaustive_header( it)
1145
1145
) ;
0 commit comments