@@ -837,7 +837,7 @@ fn item_typedef(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::T
837
837
// we need #14072 to make sense of the generics.
838
838
render_assoc_items ( w, cx, it, def_id, AssocItemRender :: All ) ;
839
839
840
- document_ty_layout ( w, cx, def_id) ;
840
+ document_type_layout ( w, cx, def_id) ;
841
841
}
842
842
843
843
fn item_union ( w : & mut Buffer , cx : & Context < ' _ > , it : & clean:: Item , s : & clean:: Union ) {
@@ -886,7 +886,7 @@ fn item_union(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, s: &clean::Uni
886
886
}
887
887
let def_id = it. def_id . expect_real ( ) ;
888
888
render_assoc_items ( w, cx, it, def_id, AssocItemRender :: All ) ;
889
- document_ty_layout ( w, cx, def_id) ;
889
+ document_type_layout ( w, cx, def_id) ;
890
890
}
891
891
892
892
fn item_enum ( w : & mut Buffer , cx : & Context < ' _ > , it : & clean:: Item , e : & clean:: Enum ) {
@@ -1023,7 +1023,7 @@ fn item_enum(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, e: &clean::Enum
1023
1023
}
1024
1024
let def_id = it. def_id . expect_real ( ) ;
1025
1025
render_assoc_items ( w, cx, it, def_id, AssocItemRender :: All ) ;
1026
- document_ty_layout ( w, cx, def_id) ;
1026
+ document_type_layout ( w, cx, def_id) ;
1027
1027
}
1028
1028
1029
1029
fn item_macro ( w : & mut Buffer , cx : & Context < ' _ > , it : & clean:: Item , t : & clean:: Macro ) {
@@ -1164,7 +1164,7 @@ fn item_struct(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, s: &clean::St
1164
1164
}
1165
1165
let def_id = it. def_id . expect_real ( ) ;
1166
1166
render_assoc_items ( w, cx, it, def_id, AssocItemRender :: All ) ;
1167
- document_ty_layout ( w, cx, def_id) ;
1167
+ document_type_layout ( w, cx, def_id) ;
1168
1168
}
1169
1169
1170
1170
fn item_static ( w : & mut Buffer , cx : & Context < ' _ > , it : & clean:: Item , s : & clean:: Static ) {
@@ -1535,7 +1535,7 @@ fn document_non_exhaustive(w: &mut Buffer, item: &clean::Item) {
1535
1535
}
1536
1536
}
1537
1537
1538
- fn document_ty_layout ( w : & mut Buffer , cx : & Context < ' _ > , ty_def_id : DefId ) {
1538
+ fn document_type_layout ( w : & mut Buffer , cx : & Context < ' _ > , ty_def_id : DefId ) {
1539
1539
if !cx. shared . show_type_layout {
1540
1540
return ;
1541
1541
}
@@ -1560,7 +1560,7 @@ fn document_ty_layout(w: &mut Buffer, cx: &Context<'_>, ty_def_id: DefId) {
1560
1560
} else {
1561
1561
writeln ! (
1562
1562
w,
1563
- "<strong>Size:</strong> {size} byte{pl}" ,
1563
+ "<p>< strong>Size:</strong> {size} byte{pl}</p> " ,
1564
1564
size = ty_layout. layout. size. bytes( ) ,
1565
1565
pl = if ty_layout. layout. size. bytes( ) == 1 { "" } else { "s" } ,
1566
1566
) ;
0 commit comments