proc: fix comment typos (#3531)

This commit is contained in:
Oleksandr Redko 2023-10-19 21:04:31 +03:00 committed by GitHub
parent 2c700230de
commit 0761d37c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -88,7 +88,7 @@ func (ctx *compileCtx) pushOp(op Op) {
} }
// depthCheck validates the list of instructions produced by Compile and // depthCheck validates the list of instructions produced by Compile and
// CompileSet by peforming a stack depth check. // CompileSet by performing a stack depth check.
// It calculates the depth of the stack at every instruction in ctx.ops and // It calculates the depth of the stack at every instruction in ctx.ops and
// checks that they have enough arguments to execute. For instructions that // checks that they have enough arguments to execute. For instructions that
// can be reached through multiple paths (because of a jump) it checks that // can be reached through multiple paths (because of a jump) it checks that

@ -133,7 +133,7 @@ type Index struct {
func (*Index) depthCheck() (npop, npush int) { return 2, 1 } func (*Index) depthCheck() (npop, npush int) { return 2, 1 }
// Jump looks at the topmost stack variable and if it satisifies the // Jump looks at the topmost stack variable and if it satisfies the
// condition specified by When it jumps to the stack machine instruction at // condition specified by When it jumps to the stack machine instruction at
// Target+1. // Target+1.
// If Pop is set the topmost stack variable is also popped. // If Pop is set the topmost stack variable is also popped.