Browse Source

Fix: typo

AnnulusGames 1 year ago
parent
commit
ed21891e3e

+ 1 - 1
src/Lua/CodeAnalysis/Syntax/OperatorPrecedence.cs

@@ -43,7 +43,7 @@ public enum OperatorPrecedence
     Unary,
 
     /// <summary>
-    /// Exponentiation ()
+    /// Exponentiation (^)
     /// </summary>
     Exponentiation,
 }

+ 1 - 1
src/Lua/Runtime/Instruction.cs

@@ -90,7 +90,7 @@ public struct Instruction : IEquatable<Instruction>
             OpCode.Mul => $"MUL       {A} {B} {C}",
             OpCode.Div => $"DIV       {A} {B} {C}",
             OpCode.Mod => $"MOD       {A} {B} {C}",
-            OpCode.Pow => $"POQ       {A} {B} {C}",
+            OpCode.Pow => $"POW       {A} {B} {C}",
             OpCode.Unm => $"UNM       {A} {B}",
             OpCode.Not => $"NOT       {A} {B}",
             OpCode.Len => $"LEN       {A} {B}",