@@ -54,7 +54,7 @@ pub enum LuaType {
5454 Instance ( Arc < LuaInstanceType > ) ,
5555 FuncTplRef ( Arc < GenericTpl > ) ,
5656 DocStringConst ( ArcIntern < SmolStr > ) ,
57- DocIntergerConst ( i64 ) ,
57+ DocIntegerConst ( i64 ) ,
5858 Namespace ( ArcIntern < SmolStr > ) ,
5959}
6060
@@ -102,7 +102,7 @@ impl PartialEq for LuaType {
102102 ( LuaType :: Instance ( a) , LuaType :: Instance ( b) ) => a == b,
103103 ( LuaType :: FuncTplRef ( a) , LuaType :: FuncTplRef ( b) ) => a == b,
104104 ( LuaType :: DocStringConst ( a) , LuaType :: DocStringConst ( b) ) => a == b,
105- ( LuaType :: DocIntergerConst ( a) , LuaType :: DocIntergerConst ( b) ) => a == b,
105+ ( LuaType :: DocIntegerConst ( a) , LuaType :: DocIntegerConst ( b) ) => a == b,
106106 ( LuaType :: Namespace ( a) , LuaType :: Namespace ( b) ) => a == b,
107107 _ => false , // 不同变体之间不相等
108108 }
@@ -176,7 +176,7 @@ impl Hash for LuaType {
176176 LuaType :: Instance ( a) => ( 38 , a) . hash ( state) ,
177177 LuaType :: FuncTplRef ( a) => ( 39 , a) . hash ( state) ,
178178 LuaType :: DocStringConst ( a) => ( 40 , a) . hash ( state) ,
179- LuaType :: DocIntergerConst ( a) => ( 41 , a) . hash ( state) ,
179+ LuaType :: DocIntegerConst ( a) => ( 41 , a) . hash ( state) ,
180180 LuaType :: Namespace ( a) => ( 42 , a) . hash ( state) ,
181181 }
182182 }
@@ -221,7 +221,7 @@ impl LuaType {
221221 pub fn is_integer ( & self ) -> bool {
222222 matches ! (
223223 self ,
224- LuaType :: IntegerConst ( _) | LuaType :: Integer | LuaType :: DocIntergerConst ( _)
224+ LuaType :: IntegerConst ( _) | LuaType :: Integer | LuaType :: DocIntegerConst ( _)
225225 )
226226 }
227227
@@ -331,7 +331,7 @@ impl LuaType {
331331 | LuaType :: FloatConst ( _)
332332 | LuaType :: TableConst ( _)
333333 | LuaType :: DocStringConst ( _)
334- | LuaType :: DocIntergerConst ( _)
334+ | LuaType :: DocIntegerConst ( _)
335335 )
336336 }
337337
0 commit comments