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:
Smilenator 2018-07-05 16:46:22 +03:00 committed by GitHub
parent 3b07451564
commit 4c392c30db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -266,9 +266,9 @@ func (s Transactions) GetRlp(i int) []byte {
return enc return enc
} }
// TxDifference returns a new set t which is the difference between a to b. // TxDifference returns a new set which is the difference between a to b.
func TxDifference(a, b Transactions) (keep Transactions) { func TxDifference(a, b Transactions) Transactions {
keep = make(Transactions, 0, len(a)) keep := make(Transactions, 0, len(a))
remove := make(map[common.Hash]struct{}) remove := make(map[common.Hash]struct{})
for _, tx := range b { for _, tx := range b {