From 4af2f1292560510496b9765ea7b828e1bb2358da Mon Sep 17 00:00:00 2001 From: LLLeon Date: Tue, 10 Oct 2017 18:47:16 +0800 Subject: [PATCH 1/2] event: fix typo --- event/event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event/event.go b/event/event.go index d3e84f0f7f..20d20d1f57 100644 --- a/event/event.go +++ b/event/event.go @@ -56,7 +56,7 @@ func (mux *TypeMux) Subscribe(types ...interface{}) *TypeMuxSubscription { defer mux.mutex.Unlock() if mux.stopped { // set the status to closed so that calling Unsubscribe after this - // call will short curuit + // call will short circuit. sub.closed = true close(sub.postC) } else { From 185a00f49ead4847c6d44d990f5262aa5f08d9cf Mon Sep 17 00:00:00 2001 From: LLLeon Date: Wed, 21 Mar 2018 14:03:37 +0800 Subject: [PATCH 2/2] core/state: fix typo. --- core/state/statedb.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 776693e248..f190f2d988 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -60,7 +60,7 @@ type StateDB struct { // DB error. // State objects are used by the consensus core and VM which are // unable to deal with database-level errors. Any error that occurs - // during a database read is memoized here and will eventually be returned + // during a database read is memorized here and will eventually be returned // by StateDB.Commit. dbErr error @@ -83,7 +83,7 @@ type StateDB struct { lock sync.Mutex } -// Create a new state from a given trie +// Create a new state from a given trie. func New(root common.Hash, db Database) (*StateDB, error) { tr, err := db.OpenTrie(root) if err != nil { @@ -110,7 +110,7 @@ func (self *StateDB) Error() error { return self.dbErr } -// Reset clears out all emphemeral state objects from the state db, but keeps +// Reset clears out all ephemeral state objects from the state db, but keeps // the underlying state trie to avoid reloading data for the next operations. func (self *StateDB) Reset(root common.Hash) error { tr, err := self.db.OpenTrie(root)