@@ -790,7 +790,7 @@ impl<'a, 'tcx> RefactorCtxt<'a, 'tcx> {
790790
791791 /// Compare two items for type compatibility under the C definition.
792792 ///
793- /// If `match_vis` is `true`, the visibility of all structure/ enum/ union
793+ /// If `match_vis` is `true`, the visibility of all `struct`/` enum`/` union`
794794 /// fields (i.e. if they are `pub`) must match between the two items.
795795 pub fn compatible_types ( & self , item1 : & Item , item2 : & Item , match_vis : bool ) -> bool {
796796 TypeCompare :: new ( self ) . compatible_types ( item1, item2, match_vis)
@@ -1067,7 +1067,7 @@ impl<'a, 'tcx, 'b> TypeCompare<'a, 'tcx, 'b> {
10671067
10681068 /// Compare two items for type compatibility under the C definition.
10691069 ///
1070- /// If `match_vis` is `true`, the visibility of all structure/ enum/ union
1070+ /// If `match_vis` is `true`, the visibility of all `struct`/` enum`/` union`
10711071 /// fields (i.e. if they are `pub`) must match between the two items.
10721072 pub fn compatible_types ( & self , item1 : & Item , item2 : & Item , match_vis : bool ) -> bool {
10731073 use rustc_ast:: ItemKind :: * ;
@@ -1273,7 +1273,7 @@ impl<'a, 'tcx, 'b> TypeCompare<'a, 'tcx, 'b> {
12731273
12741274 /// Compare two AST types for structural equivalence, ignoring names.
12751275 ///
1276- /// If `match_vis` is `true`, the visibility of all structure/ enum/ union
1276+ /// If `match_vis` is `true`, the visibility of all `struct`/` enum`/` union`
12771277 /// fields (i.e. if they are `pub`) must match between the two types.
12781278 fn structural_eq_ast_tys (
12791279 & self ,
0 commit comments