From aebafa73fffa8c4fdc022e6b49109e400729ab6a Mon Sep 17 00:00:00 2001 From: Caesar Chad Date: Thu, 14 Jun 2018 07:47:15 +0800 Subject: [PATCH 1/2] core/asm/compiler: correct comments typo core/asm/compiler: correct comments typo --- core/asm/compiler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/asm/compiler.go b/core/asm/compiler.go index c273e7c51b13..aaed0070401e 100644 --- a/core/asm/compiler.go +++ b/core/asm/compiler.go @@ -51,7 +51,7 @@ func NewCompiler(debug bool) *Compiler { // the compiler. // // feed is the first pass in the compile stage as it -// collect the used labels in the program and keeps a +// collects the used labels in the program and keeps a // program counter which is used to determine the locations // of the jump dests. The labels can than be used in the // second stage to push labels and determine the right @@ -120,7 +120,7 @@ func (c *Compiler) next() token { return token } -// compile line compiles a single line instruction e.g. +// compileLine compiles a single line instruction e.g. // "push 1", "jump @label". func (c *Compiler) compileLine() error { n := c.next() @@ -162,7 +162,7 @@ func (c *Compiler) compileNumber(element token) (int, error) { } // compileElement compiles the element (push & label or both) -// to a binary representation and may error if incorrect statements +// to a binary representation and return error if incorrect statements // where fed. func (c *Compiler) compileElement(element token) error { // check for a jump. jumps must be read and compiled From 52b7f305e0714eca97414d8c92567cb442e4de36 Mon Sep 17 00:00:00 2001 From: Caesar Chad Date: Thu, 14 Jun 2018 21:21:53 +0800 Subject: [PATCH 2/2] Correct comments typo --- core/asm/compiler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/asm/compiler.go b/core/asm/compiler.go index aaed0070401e..c7a544070136 100644 --- a/core/asm/compiler.go +++ b/core/asm/compiler.go @@ -162,7 +162,7 @@ func (c *Compiler) compileNumber(element token) (int, error) { } // compileElement compiles the element (push & label or both) -// to a binary representation and return error if incorrect statements +// to a binary representation and may error if incorrect statements // where fed. func (c *Compiler) compileElement(element token) error { // check for a jump. jumps must be read and compiled