From 84ad1b58f20a8d139f1a7da65bbdad27074f5caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=87=E5=B3=B0?= Date: Tue, 11 Sep 2018 21:04:16 +0800 Subject: [PATCH 1/2] docs:The word dummmy was misspelled and changed to dummy. --- rlp/typecache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rlp/typecache.go b/rlp/typecache.go index 3df799e1ec..8c2dd518e2 100644 --- a/rlp/typecache.go +++ b/rlp/typecache.go @@ -76,7 +76,7 @@ func cachedTypeInfo1(typ reflect.Type, tags tags) (*typeinfo, error) { // another goroutine got the write lock first return info, nil } - // put a dummmy value into the cache before generating. + // put a dummy value into the cache before generating. // if the generator tries to lookup itself, it will get // the dummy value and won't call itself recursively. typeCache[key] = new(typeinfo) From 34ff229a5be96240ea18bae2d5e045694084eeca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=87=E5=B3=B0?= Date: Fri, 14 Sep 2018 12:52:28 +0800 Subject: [PATCH 2/2] ethdb:unified code comment style --- ethdb/memory_database.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ethdb/memory_database.go b/ethdb/memory_database.go index 727f2f7ca3..f88d7396d5 100644 --- a/ethdb/memory_database.go +++ b/ethdb/memory_database.go @@ -23,9 +23,8 @@ import ( "github.com/ethereum/go-ethereum/common" ) -/* - * This is a test memory database. Do not use for any production it does not get persisted - */ + +// This is a test memory database. Do not use for any production, it does not get persisted. type MemDatabase struct { db map[string][]byte lock sync.RWMutex