From ba5025742440beadb1e598b775bbf3e66f809e7b Mon Sep 17 00:00:00 2001 From: tinyfoxy Date: Mon, 10 Jun 2024 07:42:27 +0000 Subject: [PATCH 1/2] remove duplicated words --- core/state/snapshot/iterator_test.go | 2 +- rlp/decode.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/state/snapshot/iterator_test.go b/core/state/snapshot/iterator_test.go index 54614427a5cf..daa8cdcc543a 100644 --- a/core/state/snapshot/iterator_test.go +++ b/core/state/snapshot/iterator_test.go @@ -815,7 +815,7 @@ func TestStorageIteratorDeletions(t *testing.T) { verifyIterator(t, 2, snaps.Snapshot(common.HexToHash("0x06")).(*diffLayer).newBinaryStorageIterator(common.HexToHash("0xaa")), verifyStorage) } -// BenchmarkAccountIteratorTraversal is a bit a bit notorious -- all layers contain the +// BenchmarkAccountIteratorTraversal is a bit notorious -- all layers contain the // exact same 200 accounts. That means that we need to process 2000 items, but // only spit out 200 values eventually. // diff --git a/rlp/decode.go b/rlp/decode.go index 0fbca243ee0d..dddd55515818 100644 --- a/rlp/decode.go +++ b/rlp/decode.go @@ -1064,7 +1064,7 @@ func (s *Stream) readKind() (kind Kind, size uint64, err error) { return String, uint64(b - 0x80), nil case b < 0xC0: // If a string is more than 55 bytes long, the RLP encoding consists of a - // single byte with value 0xB7 plus the length of the length of the + // single byte with value 0xB7 plus the length of the // string in binary form, followed by the length of the string, followed // by the string. For example, a length-1024 string would be encoded as // 0xB90400 followed by the string. The range of the first byte is thus From b1d3cb2c476e47ddcad007bcd9a096f2bbbb2c81 Mon Sep 17 00:00:00 2001 From: tinyfoxy Date: Mon, 10 Jun 2024 08:28:49 +0000 Subject: [PATCH 2/2] revert "the length of" --- rlp/decode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rlp/decode.go b/rlp/decode.go index dddd55515818..0fbca243ee0d 100644 --- a/rlp/decode.go +++ b/rlp/decode.go @@ -1064,7 +1064,7 @@ func (s *Stream) readKind() (kind Kind, size uint64, err error) { return String, uint64(b - 0x80), nil case b < 0xC0: // If a string is more than 55 bytes long, the RLP encoding consists of a - // single byte with value 0xB7 plus the length of the + // single byte with value 0xB7 plus the length of the length of the // string in binary form, followed by the length of the string, followed // by the string. For example, a length-1024 string would be encoded as // 0xB90400 followed by the string. The range of the first byte is thus