aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLiang ZOU <liang.d.zou@gmail.com>2018-09-25 18:26:35 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-09-25 18:26:35 +0800
commit6663e5da10e7198f7ff5e883fd857240e59d476c (patch)
tree300654c5bfdc957423328d51af2339012d5673c0 /core
parent30cd5c18549f645002aedb4c00e5bab683cb0835 (diff)
downloaddexon-6663e5da10e7198f7ff5e883fd857240e59d476c.tar
dexon-6663e5da10e7198f7ff5e883fd857240e59d476c.tar.gz
dexon-6663e5da10e7198f7ff5e883fd857240e59d476c.tar.bz2
dexon-6663e5da10e7198f7ff5e883fd857240e59d476c.tar.lz
dexon-6663e5da10e7198f7ff5e883fd857240e59d476c.tar.xz
dexon-6663e5da10e7198f7ff5e883fd857240e59d476c.tar.zst
dexon-6663e5da10e7198f7ff5e883fd857240e59d476c.zip
all: fix various comment typos (#17748)
Diffstat (limited to 'core')
-rw-r--r--core/vm/instructions.go2
-rw-r--r--core/vm/memory.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/vm/instructions.go b/core/vm/instructions.go
index ca9e775ac..4d1bd4a34 100644
--- a/core/vm/instructions.go
+++ b/core/vm/instructions.go
@@ -727,7 +727,7 @@ func opCreate2(pc *uint64, interpreter *EVMInterpreter, contract *Contract, memo
}
func opCall(pc *uint64, interpreter *EVMInterpreter, contract *Contract, memory *Memory, stack *Stack) ([]byte, error) {
- // Pop gas. The actual gas in in interpreter.evm.callGasTemp.
+ // Pop gas. The actual gas in interpreter.evm.callGasTemp.
interpreter.intPool.put(stack.pop())
gas := interpreter.evm.callGasTemp
// Pop other call parameters.
diff --git a/core/vm/memory.go b/core/vm/memory.go
index 722862b1d..7e6f0eb94 100644
--- a/core/vm/memory.go
+++ b/core/vm/memory.go
@@ -29,7 +29,7 @@ type Memory struct {
lastGasCost uint64
}
-// NewMemory returns a new memory memory model.
+// NewMemory returns a new memory model.
func NewMemory() *Memory {
return &Memory{}
}