Skip to content

Commit

Permalink
proc: fix comment typos (#3531)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Oct 19, 2023
1 parent 2c70023 commit 0761d37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/proc/evalop/evalcompile.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (ctx *compileCtx) pushOp(op Op) {
}

// 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
// checks that they have enough arguments to execute. For instructions that
// can be reached through multiple paths (because of a jump) it checks that
Expand Down
2 changes: 1 addition & 1 deletion pkg/proc/evalop/ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ type Index struct {

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
// Target+1.
// If Pop is set the topmost stack variable is also popped.
Expand Down

0 comments on commit 0761d37

Please sign in to comment.