From 9ff9d04a6906cdb941f6797e63b9da7536316b64 Mon Sep 17 00:00:00 2001 From: Ricardo Domingos Date: Fri, 24 Nov 2017 10:20:01 +0100 Subject: [PATCH] all: fix code comment typos (#15547) * console: fix typo in comment * contracts/release: fix typo in comment * core: fix typo in comment * eth: fix typo in comment * miner: fix typo in comment --- console/console.go | 4 ++-- contracts/release/contract.sol | 2 +- core/chain_indexer.go | 2 +- core/tx_pool_test.go | 2 +- eth/downloader/peer.go | 2 +- miner/unconfirmed.go | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/console/console.go b/console/console.go index 3cd2ad34b..c42c9bfbb 100644 --- a/console/console.go +++ b/console/console.go @@ -47,7 +47,7 @@ const HistoryFile = "history" // DefaultPrompt is the default prompt line prefix to use for user input querying. const DefaultPrompt = "> " -// Config is te collection of configurations to fine tune the behavior of the +// Config is the collection of configurations to fine tune the behavior of the // JavaScript console. type Config struct { DataDir string // Data directory to store the console history at @@ -238,7 +238,7 @@ func (c *Console) AutoCompleteInput(line string, pos int) (string, []string, str // E.g. in case of nested lines eth.getBalance(eth.coinb start := pos - 1 for ; start > 0; start-- { - // Skip all methods and namespaces (i.e. including te dot) + // Skip all methods and namespaces (i.e. including the dot) if line[start] == '.' || (line[start] >= 'a' && line[start] <= 'z') || (line[start] >= 'A' && line[start] <= 'Z') { continue } diff --git a/contracts/release/contract.sol b/contracts/release/contract.sol index 554cf7290..b9d94c756 100644 --- a/contracts/release/contract.sol +++ b/contracts/release/contract.sol @@ -77,7 +77,7 @@ contract ReleaseOracle { } } - // signers is an accessor method to retrieve all te signers (public accessor + // signers is an accessor method to retrieve all the signers (public accessor // generates an indexed one, not a retrieve-all version). function signers() constant returns(address[]) { return voters; diff --git a/core/chain_indexer.go b/core/chain_indexer.go index 7e7500dc8..7fb184aaa 100644 --- a/core/chain_indexer.go +++ b/core/chain_indexer.go @@ -230,7 +230,7 @@ func (c *ChainIndexer) newHead(head uint64, reorg bool) { if changed < c.storedSections { c.setValidSections(changed) } - // Update the new head number to te finalized section end and notify children + // Update the new head number to the finalized section end and notify children head = changed * c.sectionSize if head < c.cascadedHead { diff --git a/core/tx_pool_test.go b/core/tx_pool_test.go index e9ecbb933..21171a737 100644 --- a/core/tx_pool_test.go +++ b/core/tx_pool_test.go @@ -1266,7 +1266,7 @@ func TestTransactionPoolRepricingKeepsLocals(t *testing.T) { // Tests that when the pool reaches its global transaction limit, underpriced // transactions are gradually shifted out for more expensive ones and any gapped -// pending transactions are moved into te queue. +// pending transactions are moved into the queue. // // Note, local transactions are never allowed to be dropped. func TestTransactionPoolUnderpricing(t *testing.T) { diff --git a/eth/downloader/peer.go b/eth/downloader/peer.go index e638744ea..a4aa86114 100644 --- a/eth/downloader/peer.go +++ b/eth/downloader/peer.go @@ -548,7 +548,7 @@ func (ps *peerSet) idlePeers(minProtocol, maxProtocol int, idleCheck func(*peerC return idle, total } -// medianRTT returns the median RTT of te peerset, considering only the tuning +// medianRTT returns the median RTT of the peerset, considering only the tuning // peers if there are more peers available. func (ps *peerSet) medianRTT() time.Duration { // Gather all the currnetly measured round trip times diff --git a/miner/unconfirmed.go b/miner/unconfirmed.go index ee52d8512..7a4fc7cc5 100644 --- a/miner/unconfirmed.go +++ b/miner/unconfirmed.go @@ -42,7 +42,7 @@ type unconfirmedBlock struct { // unconfirmedBlocks implements a data structure to maintain locally mined blocks // have have not yet reached enough maturity to guarantee chain inclusion. It is // used by the miner to provide logs to the user when a previously mined block -// has a high enough guarantee to not be reorged out of te canonical chain. +// has a high enough guarantee to not be reorged out of the canonical chain. type unconfirmedBlocks struct { chain headerRetriever // Blockchain to verify canonical status through depth uint // Depth after which to discard previous blocks