浏览代码

core/asm: fixed typo (labal -> label) (#16313)

hydai 7 年之前
父节点
当前提交
a063876749
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      core/asm/compiler.go
  2. 1 1
      core/asm/lexer.go

+ 1 - 1
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 {

+ 1 - 1
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