mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
core: fix func TxDifference
fix a typo in func comment; change named return to unnamed as there's explicit return in the body
This commit is contained in:
parent
3b07451564
commit
4c392c30db
1 changed files with 3 additions and 3 deletions
|
|
@ -266,9 +266,9 @@ func (s Transactions) GetRlp(i int) []byte {
|
|||
return enc
|
||||
}
|
||||
|
||||
// TxDifference returns a new set t which is the difference between a to b.
|
||||
func TxDifference(a, b Transactions) (keep Transactions) {
|
||||
keep = make(Transactions, 0, len(a))
|
||||
// TxDifference returns a new set which is the difference between a to b.
|
||||
func TxDifference(a, b Transactions) Transactions {
|
||||
keep := make(Transactions, 0, len(a))
|
||||
|
||||
remove := make(map[common.Hash]struct{})
|
||||
for _, tx := range b {
|
||||
|
|
|
|||
Loading…
Reference in a new issue