Skip to content

Commit 3273ad1

Browse files
authored
eth: add missing period at end of sentences (ethereum#25058)
eth: add missing periods on end of comments
1 parent bc013bc commit 3273ad1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

eth/api.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ func NewPublicEthereumAPI(e *Ethereum) *PublicEthereumAPI {
5252
return &PublicEthereumAPI{e}
5353
}
5454

55-
// Etherbase is the address that mining rewards will be send to
55+
// Etherbase is the address that mining rewards will be send to.
5656
func (api *PublicEthereumAPI) Etherbase() (common.Address, error) {
5757
return api.e.Etherbase()
5858
}
5959

60-
// Coinbase is the address that mining rewards will be send to (alias for Etherbase)
60+
// Coinbase is the address that mining rewards will be send to (alias for Etherbase).
6161
func (api *PublicEthereumAPI) Coinbase() (common.Address, error) {
6262
return api.Etherbase()
6363
}
6464

65-
// Hashrate returns the POW hashrate
65+
// Hashrate returns the POW hashrate.
6666
func (api *PublicEthereumAPI) Hashrate() hexutil.Uint64 {
6767
return hexutil.Uint64(api.e.Miner().Hashrate())
6868
}
@@ -136,7 +136,7 @@ func (api *PrivateMinerAPI) SetGasLimit(gasLimit hexutil.Uint64) bool {
136136
return true
137137
}
138138

139-
// SetEtherbase sets the etherbase of the miner
139+
// SetEtherbase sets the etherbase of the miner.
140140
func (api *PrivateMinerAPI) SetEtherbase(etherbase common.Address) bool {
141141
api.e.SetEtherbase(etherbase)
142142
return true
@@ -160,7 +160,7 @@ func NewPrivateAdminAPI(eth *Ethereum) *PrivateAdminAPI {
160160
}
161161

162162
// ExportChain exports the current blockchain into a local file,
163-
// or a range of blocks if first and last are non-nil
163+
// or a range of blocks if first and last are non-nil.
164164
func (api *PrivateAdminAPI) ExportChain(file string, first *uint64, last *uint64) (bool, error) {
165165
if first == nil && last != nil {
166166
return false, errors.New("last cannot be specified without first")
@@ -328,7 +328,7 @@ type BadBlockArgs struct {
328328
}
329329

330330
// GetBadBlocks returns a list of the last 'bad blocks' that the client has seen on the network
331-
// and returns them as a JSON list of block-hashes
331+
// and returns them as a JSON list of block hashes.
332332
func (api *PrivateDebugAPI) GetBadBlocks(ctx context.Context) ([]*BadBlockArgs, error) {
333333
var (
334334
err error

eth/downloader/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func (s *SyncStatusSubscription) Unsubscribe() {
159159
}
160160

161161
// SubscribeSyncStatus creates a subscription that will broadcast new synchronisation updates.
162-
// The given channel must receive interface values, the result can either
162+
// The given channel must receive interface values, the result can either.
163163
func (api *PublicDownloaderAPI) SubscribeSyncStatus(status chan interface{}) *SyncStatusSubscription {
164164
api.installSyncSubscription <- status
165165
return &SyncStatusSubscription{api: api, c: status}

0 commit comments

Comments
 (0)