diff --git a/core/snapshotdb/snapshotdb.go b/core/snapshotdb/snapshotdb.go index 15d8fe56b5..8c0db24f54 100644 --- a/core/snapshotdb/snapshotdb.go +++ b/core/snapshotdb/snapshotdb.go @@ -108,7 +108,7 @@ type DB interface { Compaction() error SetEmpty() error - //ues to Revert failed tx + // use to Revert failed tx RevertToSnapshot(hash common.Hash, revid int) Snapshot(hash common.Hash) int } diff --git a/core/state/dump.go b/core/state/dump.go index 7fcb524914..dfe0124d3f 100644 --- a/core/state/dump.go +++ b/core/state/dump.go @@ -201,7 +201,7 @@ func (s *StateDB) DumpToCollector(c DumpCollector, conf *DumpConfig) (nextKey [] return nextKey } -// RawDump returns the entire state an a single large object +// RawDump returns the entire state as a single large object func (s *StateDB) RawDump(opts *DumpConfig) Dump { dump := &Dump{ Accounts: make(map[common.Address]DumpAccount), diff --git a/log/format.go b/log/format.go index c3e32877a0..cad2a0a3e8 100644 --- a/log/format.go +++ b/log/format.go @@ -42,7 +42,7 @@ func PrintOrigins(print bool) { var locationEnabled uint32 // locationLength is the maxmimum path length encountered, which all logs are -// padded to to aid in alignment. +// padded to aid in alignment. var locationLength uint32 // fieldPadding is a global map with maximum field value lengths seen until now