Skip to content

Commit 9ff9d04

Browse files
ricardohsdkaralabe
authored andcommitted
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
1 parent edc3e0e commit 9ff9d04

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎console/console.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const HistoryFile = "history"
4747
// DefaultPrompt is the default prompt line prefix to use for user input querying.
4848
const DefaultPrompt = "> "
4949

50-
// Config is te collection of configurations to fine tune the behavior of the
50+
// Config is the collection of configurations to fine tune the behavior of the
5151
// JavaScript console.
5252
type Config struct {
5353
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
238238
// E.g. in case of nested lines eth.getBalance(eth.coinb<tab><tab>
239239
start := pos - 1
240240
for ; start > 0; start-- {
241-
// Skip all methods and namespaces (i.e. including te dot)
241+
// Skip all methods and namespaces (i.e. including the dot)
242242
if line[start] == '.' || (line[start] >= 'a' && line[start] <= 'z') || (line[start] >= 'A' && line[start] <= 'Z') {
243243
continue
244244
}

‎contracts/release/contract.sol‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ contract ReleaseOracle {
7777
}
7878
}
7979

80-
// signers is an accessor method to retrieve all te signers (public accessor
80+
// signers is an accessor method to retrieve all the signers (public accessor
8181
// generates an indexed one, not a retrieve-all version).
8282
function signers() constant returns(address[]) {
8383
return voters;

‎core/chain_indexer.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func (c *ChainIndexer) newHead(head uint64, reorg bool) {
230230
if changed < c.storedSections {
231231
c.setValidSections(changed)
232232
}
233-
// Update the new head number to te finalized section end and notify children
233+
// Update the new head number to the finalized section end and notify children
234234
head = changed * c.sectionSize
235235

236236
if head < c.cascadedHead {

‎core/tx_pool_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ func TestTransactionPoolRepricingKeepsLocals(t *testing.T) {
12661266

12671267
// Tests that when the pool reaches its global transaction limit, underpriced
12681268
// transactions are gradually shifted out for more expensive ones and any gapped
1269-
// pending transactions are moved into te queue.
1269+
// pending transactions are moved into the queue.
12701270
//
12711271
// Note, local transactions are never allowed to be dropped.
12721272
func TestTransactionPoolUnderpricing(t *testing.T) {

‎eth/downloader/peer.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ func (ps *peerSet) idlePeers(minProtocol, maxProtocol int, idleCheck func(*peerC
548548
return idle, total
549549
}
550550

551-
// medianRTT returns the median RTT of te peerset, considering only the tuning
551+
// medianRTT returns the median RTT of the peerset, considering only the tuning
552552
// peers if there are more peers available.
553553
func (ps *peerSet) medianRTT() time.Duration {
554554
// Gather all the currnetly measured round trip times

‎miner/unconfirmed.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type unconfirmedBlock struct {
4242
// unconfirmedBlocks implements a data structure to maintain locally mined blocks
4343
// have have not yet reached enough maturity to guarantee chain inclusion. It is
4444
// used by the miner to provide logs to the user when a previously mined block
45-
// has a high enough guarantee to not be reorged out of te canonical chain.
45+
// has a high enough guarantee to not be reorged out of the canonical chain.
4646
type unconfirmedBlocks struct {
4747
chain headerRetriever // Blockchain to verify canonical status through
4848
depth uint // Depth after which to discard previous blocks

0 commit comments

Comments
 (0)