@@ -837,7 +837,7 @@ fn item_typedef(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::T
837837 // we need #14072 to make sense of the generics.
838838 render_assoc_items ( w, cx, it, def_id, AssocItemRender :: All ) ;
839839
840- document_ty_layout ( w, cx, def_id) ;
840+ document_type_layout ( w, cx, def_id) ;
841841}
842842
843843fn 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
886886 }
887887 let def_id = it. def_id . expect_real ( ) ;
888888 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) ;
890890}
891891
892892fn 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
10231023 }
10241024 let def_id = it. def_id . expect_real ( ) ;
10251025 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) ;
10271027}
10281028
10291029fn 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
11641164 }
11651165 let def_id = it. def_id . expect_real ( ) ;
11661166 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) ;
11681168}
11691169
11701170fn 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) {
15351535 }
15361536}
15371537
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 ) {
15391539 if !cx. shared . show_type_layout {
15401540 return ;
15411541 }
@@ -1560,7 +1560,7 @@ fn document_ty_layout(w: &mut Buffer, cx: &Context<'_>, ty_def_id: DefId) {
15601560 } else {
15611561 writeln ! (
15621562 w,
1563- "<strong>Size:</strong> {size} byte{pl}" ,
1563+ "<p>< strong>Size:</strong> {size} byte{pl}</p> " ,
15641564 size = ty_layout. layout. size. bytes( ) ,
15651565 pl = if ty_layout. layout. size. bytes( ) == 1 { "" } else { "s" } ,
15661566 ) ;
0 commit comments