Skip to content

Commit 18c7774

Browse files
committed
all: fix spelling errors
1 parent ac93a6f commit 18c7774

File tree

40 files changed

+65
-65
lines changed

40 files changed

+65
-65
lines changed

build/update-license.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func getInfo(files <-chan string, out chan<- *info, wg *sync.WaitGroup) {
294294
wg.Done()
295295
}
296296

297-
// fileInfo finds the lowest year in which the given file was commited.
297+
// fileInfo finds the lowest year in which the given file was committed.
298298
func fileInfo(file string) (*info, error) {
299299
info := &info{file: file, Year: int64(time.Now().Year())}
300300
cmd := exec.Command("git", "log", "--follow", "--find-renames=80", "--find-copies=80", "--pretty=format:%ai", "--", file)

cmd/swarm/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ var (
114114
}
115115
CorsStringFlag = cli.StringFlag{
116116
Name: "corsdomain",
117-
Usage: "Domain on which to send Access-Control-Allow-Origin header (multiple domains can be supplied seperated by a ',')",
117+
Usage: "Domain on which to send Access-Control-Allow-Origin header (multiple domains can be supplied separated by a ',')",
118118
}
119119
)
120120

console/bridge.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func newBridge(client *rpc.Client, prompter UserPrompter, printer io.Writer) *br
4646
}
4747

4848
// NewAccount is a wrapper around the personal.newAccount RPC method that uses a
49-
// non-echoing password prompt to aquire the passphrase and executes the original
49+
// non-echoing password prompt to acquire the passphrase and executes the original
5050
// RPC method (saved in jeth.newAccount) with it to actually execute the RPC call.
5151
func (b *bridge) NewAccount(call otto.FunctionCall) (response otto.Value) {
5252
var (
@@ -75,7 +75,7 @@ func (b *bridge) NewAccount(call otto.FunctionCall) (response otto.Value) {
7575
default:
7676
throwJSException("expected 0 or 1 string argument")
7777
}
78-
// Password aquired, execute the call and return
78+
// Password acquired, execute the call and return
7979
ret, err := call.Otto.Call("jeth.newAccount", nil, password)
8080
if err != nil {
8181
throwJSException(err.Error())
@@ -84,7 +84,7 @@ func (b *bridge) NewAccount(call otto.FunctionCall) (response otto.Value) {
8484
}
8585

8686
// UnlockAccount is a wrapper around the personal.unlockAccount RPC method that
87-
// uses a non-echoing password prompt to aquire the passphrase and executes the
87+
// uses a non-echoing password prompt to acquire the passphrase and executes the
8888
// original RPC method (saved in jeth.unlockAccount) with it to actually execute
8989
// the RPC call.
9090
func (b *bridge) UnlockAccount(call otto.FunctionCall) (response otto.Value) {
@@ -127,7 +127,7 @@ func (b *bridge) UnlockAccount(call otto.FunctionCall) (response otto.Value) {
127127
}
128128

129129
// Sign is a wrapper around the personal.sign RPC method that uses a non-echoing password
130-
// prompt to aquire the passphrase and executes the original RPC method (saved in
130+
// prompt to acquire the passphrase and executes the original RPC method (saved in
131131
// jeth.sign) with it to actually execute the RPC call.
132132
func (b *bridge) Sign(call otto.FunctionCall) (response otto.Value) {
133133
var (

console/prompter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type UserPrompter interface {
4444
PromptConfirm(prompt string) (bool, error)
4545

4646
// SetHistory sets the the input scrollback history that the prompter will allow
47-
// the user to scoll back to.
47+
// the user to scroll back to.
4848
SetHistory(history []string)
4949

5050
// AppendHistory appends an entry to the scrollback history. It should be called
@@ -147,7 +147,7 @@ func (p *terminalPrompter) PromptConfirm(prompt string) (bool, error) {
147147
}
148148

149149
// SetHistory sets the the input scrollback history that the prompter will allow
150-
// the user to scoll back to.
150+
// the user to scroll back to.
151151
func (p *terminalPrompter) SetHistory(history []string) {
152152
p.State.ReadHistory(strings.NewReader(strings.Join(history, "\n")))
153153
}

contracts/chequebook/cheque.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func (self *Chequebook) Issue(beneficiary common.Address, amount *big.Int) (ch *
252252
return nil, fmt.Errorf("amount must be greater than zero (%v)", amount)
253253
}
254254
if self.balance.Cmp(amount) < 0 {
255-
err = fmt.Errorf("insufficent funds to issue cheque for amount: %v. balance: %v", amount, self.balance)
255+
err = fmt.Errorf("insufficient funds to issue cheque for amount: %v. balance: %v", amount, self.balance)
256256
} else {
257257
var sig []byte
258258
sent, found := self.sent[beneficiary]
@@ -277,7 +277,7 @@ func (self *Chequebook) Issue(beneficiary common.Address, amount *big.Int) (ch *
277277
}
278278

279279
// auto deposit if threshold is set and balance is less then threshold
280-
// note this is called even if issueing cheque fails
280+
// note this is called even if issuing cheque fails
281281
// so we reattempt depositing
282282
if self.threshold != nil {
283283
if self.balance.Cmp(self.threshold) < 0 {

contracts/release/contract.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ contract ReleaseOracle {
7878
}
7979

8080
// signers is an accessor method to retrieve all te signers (public accessor
81-
// generates an indexed one, not a retreive-all version).
81+
// generates an indexed one, not a retrieve-all version).
8282
function signers() constant returns(address[]) {
8383
return voters;
8484
}
@@ -178,7 +178,7 @@ contract ReleaseOracle {
178178
voters[i] = voters[voters.length - 1];
179179
voters.length--;
180180

181-
delete verProp; // Nuke any version proposal (no suprise releases!)
181+
delete verProp; // Nuke any version proposal (no surprise releases!)
182182
break;
183183
}
184184
}

core/state/statedb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (self *StateDB) Exist(addr common.Address) bool {
210210
return self.GetStateObject(addr) != nil
211211
}
212212

213-
// Empty returns whether the state object is either non-existant
213+
// Empty returns whether the state object is either non-existent
214214
// or empty according to the EIP161 specification (balance = nonce = code = 0)
215215
func (self *StateDB) Empty(addr common.Address) bool {
216216
so := self.GetStateObject(addr)

core/tx_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func (m *txSortedMap) Flatten() types.Transactions {
216216
// txList is a "list" of transactions belonging to an account, sorted by account
217217
// nonce. The same type can be used both for storing contiguous transactions for
218218
// the executable/pending queue; and for storing gapped transactions for the non-
219-
// executable/future queue, with minor behavoiral changes.
219+
// executable/future queue, with minor behavioral changes.
220220
type txList struct {
221221
strict bool // Whether nonces are strictly continuous or not
222222
txs *txSortedMap // Heap indexed sorted hash map of the transactions

core/tx_pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ func (pool *TxPool) validateTx(tx *types.Transaction) error {
321321
// add validates a transaction and inserts it into the non-executable queue for
322322
// later pending promotion and execution.
323323
func (pool *TxPool) add(tx *types.Transaction) error {
324-
// If the transaction is alreayd known, discard it
324+
// If the transaction is already known, discard it
325325
hash := tx.Hash()
326326
if pool.all[hash] != nil {
327327
return fmt.Errorf("Known transaction: %x", hash[:4])

core/vm/environment.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type (
3434
GetHashFunc func(uint64) common.Hash
3535
)
3636

37-
// Context provides the EVM with auxilary information. Once provided it shouldn't be modified.
37+
// Context provides the EVM with auxiliary information. Once provided it shouldn't be modified.
3838
type Context struct {
3939
// CanTransfer returns whether the account contains
4040
// sufficient ether to transfer the value
@@ -99,7 +99,7 @@ func (evm *EVM) Cancel() {
9999
atomic.StoreInt32(&evm.abort, 1)
100100
}
101101

102-
// Call executes the contract associated with the addr with the given input as paramaters. It also handles any
102+
// Call executes the contract associated with the addr with the given input as parameters. It also handles any
103103
// necessary value transfer required and takes the necessary steps to create accounts and reverses the state in
104104
// case of an execution error or failed value transfer.
105105
func (evm *EVM) Call(caller ContractRef, addr common.Address, input []byte, gas, value *big.Int) (ret []byte, err error) {
@@ -157,7 +157,7 @@ func (evm *EVM) Call(caller ContractRef, addr common.Address, input []byte, gas,
157157
return ret, err
158158
}
159159

160-
// CallCode executes the contract associated with the addr with the given input as paramaters. It also handles any
160+
// CallCode executes the contract associated with the addr with the given input as parameters. It also handles any
161161
// necessary value transfer required and takes the necessary steps to create accounts and reverses the state in
162162
// case of an execution error or failed value transfer.
163163
//
@@ -203,7 +203,7 @@ func (evm *EVM) CallCode(caller ContractRef, addr common.Address, input []byte,
203203
return ret, err
204204
}
205205

206-
// DelegateCall executes the contract associated with the addr with the given input as paramaters.
206+
// DelegateCall executes the contract associated with the addr with the given input as parameters.
207207
// It reverses the state in case of an execution error.
208208
//
209209
// DelegateCall differs from CallCode in the sense that it executes the given address' code with the caller as context

0 commit comments

Comments
 (0)