Skip to content

Commit 0e5d9fd

Browse files
jtragliacp-wjhan
authored andcommitted
all: fix some typos (ethereum#25551)
* Fix some typos * Fix some mistakes * Revert 4byte.json * Fix an incorrect fix * Change files to fails * Fix Conflicts: accounts/keystore/keystore_test.go,eth/state_accessor.go,les/fetcher.go
1 parent 28d241b commit 0e5d9fd

File tree

94 files changed

+198
-198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+198
-198
lines changed

accounts/abi/reflect_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type reflectTest struct {
3232

3333
var reflectTests = []reflectTest{
3434
{
35-
name: "OneToOneCorrespondance",
35+
name: "OneToOneCorrespondence",
3636
args: []string{"fieldA"},
3737
struc: struct {
3838
FieldA int `abi:"fieldA"`

accounts/keystore/account_cache_test.go

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

331331
t.Parallel()
332332

333-
// Create a temporary kesytore to test with
333+
// Create a temporary keystore to test with
334334
rand.Seed(time.Now().UnixNano())
335335
dir := filepath.Join(os.TempDir(), fmt.Sprintf("eth-keystore-updatedkeyfilecontents-test-%d-%d", os.Getpid(), rand.Int()))
336336
ks := NewKeyStore(dir, LightScryptN, LightScryptP)

accounts/keystore/file_cache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type fileCache struct {
3939
func (fc *fileCache) scan(keyDir string) (mapset.Set, mapset.Set, mapset.Set, error) {
4040
t0 := time.Now()
4141

42-
// List all the failes from the keystore folder
42+
// List all the files from the keystore folder
4343
files, err := os.ReadDir(keyDir)
4444
if err != nil {
4545
return nil, nil, nil, err
@@ -61,7 +61,7 @@ func (fc *fileCache) scan(keyDir string) (mapset.Set, mapset.Set, mapset.Set, er
6161
log.Trace("Ignoring file on account scan", "path", path)
6262
continue
6363
}
64-
// Gather the set of all and fresly modified files
64+
// Gather the set of all and freshly modified files
6565
all.Add(path)
6666

6767
info, err := fi.Info()

accounts/keystore/keystore_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func TestWalletNotifierLifecycle(t *testing.T) {
218218
t.Skip("skipping test in short mode")
219219
}
220220

221-
// Create a temporary kesytore to test with
221+
// Create a temporary keystore to test with
222222
_, ks := tmpKeyStore(t, false)
223223

224224
// Ensure that the notification updater is not running yet

accounts/usbwallet/trezor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ func (w *trezorDriver) trezorDerive(derivationPath []uint32) (common.Address, er
212212
if _, err := w.trezorExchange(&trezor.EthereumGetAddress{AddressN: derivationPath}, address); err != nil {
213213
return common.Address{}, err
214214
}
215-
if addr := address.GetAddressBin(); len(addr) > 0 { // Older firmwares use binary fomats
215+
if addr := address.GetAddressBin(); len(addr) > 0 { // Older firmwares use binary formats
216216
return common.BytesToAddress(addr), nil
217217
}
218-
if addr := address.GetAddressHex(); len(addr) > 0 { // Newer firmwares use hexadecimal fomats
218+
if addr := address.GetAddressHex(); len(addr) > 0 { // Newer firmwares use hexadecimal formats
219219
return common.HexToAddress(addr), nil
220220
}
221221
return common.Address{}, errors.New("missing derived address")

accounts/usbwallet/wallet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ func (w *wallet) selfDerive() {
388388
// of legacy-ledger, the first account on the legacy-path will
389389
// be shown to the user, even if we don't actively track it
390390
if i < len(nextAddrs)-1 {
391-
w.log.Info("Skipping trakcking first account on legacy path, use personal.deriveAccount(<url>,<path>, false) to track",
391+
w.log.Info("Skipping tracking first account on legacy path, use personal.deriveAccount(<url>,<path>, false) to track",
392392
"path", path, "address", nextAddrs[i])
393393
break
394394
}

build/ci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ func doDocker(cmdline []string) {
618618
}
619619
if mismatch {
620620
// Build numbers mismatching, retry in a short time to
621-
// avoid concurrent failes in both publisher images. If
621+
// avoid concurrent fails in both publisher images. If
622622
// however the retry failed too, it means the concurrent
623623
// builder is still crunching, let that do the publish.
624624
if i == 0 {

cmd/faucet/faucet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ func authTwitter(url string, tokenV1, tokenV2 string) (string, string, string, c
709709
case tokenV2 != "":
710710
return authTwitterWithTokenV2(tweetID, tokenV2)
711711
}
712-
// Twiter API token isn't provided so we just load the public posts
712+
// Twitter API token isn't provided so we just load the public posts
713713
// and scrape it for the Ethereum address and profile URL. We need to load
714714
// the mobile page though since the main page loads tweet contents via JS.
715715
url = strings.Replace(url, "https://twitter.com/", "https://mobile.twitter.com/", 1)

cmd/geth/consolecmd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ To exit, press ctrl-d or type exit
155155
}
156156

157157
// trulyRandInt generates a crypto random integer used by the console tests to
158-
// not clash network ports with other tests running cocurrently.
158+
// not clash network ports with other tests running concurrently.
159159
func trulyRandInt(lo, hi int) int {
160160
num, _ := rand.Int(rand.Reader, big.NewInt(int64(hi-lo)))
161161
return int(num.Int64()) + lo

cmd/puppeth/ssh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func dial(server string, pubkey []byte) (*sshClient, error) {
163163
return nil
164164
}
165165
// We have a mismatch, forbid connecting
166-
return errors.New("ssh key mismatch, readd the machine to update")
166+
return errors.New("ssh key mismatch, re-add the machine to update")
167167
}
168168
client, err := ssh.Dial("tcp", hostport, &ssh.ClientConfig{User: username, Auth: auths, HostKeyCallback: keycheck})
169169
if err != nil {

0 commit comments

Comments
 (0)