diff --git a/core/asm/compiler.go b/core/asm/compiler.go index 318c4e4d805069c1ef293af858004d6f9a2e4ff6..1b9025a54933e80d643ac7aaf323022e165634ae 100644 --- a/core/asm/compiler.go +++ b/core/asm/compiler.go @@ -122,7 +122,7 @@ func (c *Compiler) next() token { } // compile line compiles a single line instruction e.g. -// "push 1", "jump @labal". +// "push 1", "jump @label". func (c *Compiler) compileLine() error { n := c.next() if n.typ != lineStart { diff --git a/core/asm/lexer.go b/core/asm/lexer.go index 40549995049985130e84620418a37d917495d5ee..4d62159e55d7f82a2aa22ef769d5d6c3e16a89b4 100644 --- a/core/asm/lexer.go +++ b/core/asm/lexer.go @@ -48,7 +48,7 @@ const ( lineEnd // emitted when a line ends invalidStatement // any invalid statement element // any element during element parsing - label // label is emitted when a labal is found + label // label is emitted when a label is found labelDef // label definition is emitted when a new label is found number // number is emitted when a number is found stringValue // stringValue is emitted when a string has been found