diff --git a/cmd/chainvet/logparity.go b/cmd/chainvet/logparity.go index 0a63a4185f..68da8388e9 100644 --- a/cmd/chainvet/logparity.go +++ b/cmd/chainvet/logparity.go @@ -14,7 +14,7 @@ func init() { callExpr) } -// checkCall triggers the print-specific checks if the call invokes a print function. +// checkLogCall triggers the print-specific checks if the call invokes a print function. func checkLogCall(f *File, node ast.Node) { call, ok := node.(*ast.CallExpr) if !ok { diff --git a/protocol/vm/vmutil/builder.go b/protocol/vm/vmutil/builder.go index d3d8fe86fb..e3ae63f340 100644 --- a/protocol/vm/vmutil/builder.go +++ b/protocol/vm/vmutil/builder.go @@ -66,7 +66,7 @@ func (b *Builder) AddJump(target int) *Builder { return b.addJump(vm.OP_JUMP, target) } -// AddJump adds a JUMPIF opcode whose target is the given target +// AddJumpIf adds a JUMPIF opcode whose target is the given target // number. The actual program location of the target does not need to // be known yet, as long as SetJumpTarget is called before Build. func (b *Builder) AddJumpIf(target int) *Builder {