浏览代码

Update Beginners_-_Struct_in_Struct.c

Rudy Boudewijn van Etten 5 年之前
父节点
当前提交
7fa2141208
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Beginners_-_Struct_in_Struct.c

+ 2 - 2
Beginners_-_Struct_in_Struct.c

@@ -5,14 +5,14 @@ struct inventory{
     bool pepper;
     bool salt;
     bool potion;
-}inventory;
+};
 
 struct aiMushroom{
     int x;
     int y;
     int energy;
     struct inventory leftPocket;
-}aiMushroom;
+};
 
 static struct aiMushroom myaiMushroom = {10,20,99,{true,false,true}};