From f228fcacd60ccee7cde38f6021a118a9df9bab35 Mon Sep 17 00:00:00 2001 From: momantech Date: Sat, 15 Mar 2025 11:11:17 +0800 Subject: [PATCH] chore: make function comment match function name Signed-off-by: momantech --- cmd/chainvet/logparity.go | 2 +- protocol/vm/vmutil/builder.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {