chore: fix some function names in comments (#1862)

Signed-off-by: threehonor <pengqi@email.cn>
This commit is contained in:
threehonor
2025-03-28 11:03:31 +08:00
committed by GitHub
parent cc05f7e6fd
commit 956d38be5e
4 changed files with 4 additions and 4 deletions

View File

@@ -1234,7 +1234,7 @@ func trelloGetLists() ([]TrelloData, error) {
return resp, sendGetReq(fmt.Sprintf(pathGetAllLists, trelloBoardID, apiKey, apiToken), &resp)
}
// trelloNewList creates a new list on a specified boards on trello
// trelloCreateNewList creates a new list on a specified boards on trello
func trelloCreateNewList() error {
if trelloBoardID == "" {
return errors.New("trelloBoardID not set, cannot create a new list")

2
common/cache/lru.go vendored
View File

@@ -97,7 +97,7 @@ func (l *LRU) Len() uint64 {
return uint64(l.l.Len()) //nolint:gosec // False positive as uint64 (2^64-1) can support both 2^31-1 on 32bit systems and 2^63-1 on 64bit systems
}
// removeOldest removes the oldest item from the cache.
// removeOldestEntry removes the oldest item from the cache.
func (l *LRU) removeOldestEntry() {
if i := l.l.Back(); i != nil {
l.removeElement(i)

View File

@@ -770,7 +770,7 @@ func checkPairDelimiter(tb testing.TB, p *PairsManager, err error, d, msg string
}
}
// TestPairManagerUnmarshal tests behaviour expectations:
// TestPairManagerSetDelimitersFromConfig tests behaviour expectations:
// * Should error with no ConfigFormat ( `CheckPairConsistency` catches that )
// * Asset pair config should take precedent
// * Global store pair config should apply when no Asset pair config

View File

@@ -194,7 +194,7 @@ func (p Pair) LimitBuyOrderParameters(wantingToBuy Code) (*OrderParameters, erro
return p.getOrderParameters(wantingToBuy, false, false)
}
// getOrderDecisionDetails returns order parameters for the currency pair using
// getOrderParameters returns order parameters for the currency pair using
// the provided currency code, whether or not you are selling and whether or not
// you are placing a market order.
func (p Pair) getOrderParameters(c Code, selling, market bool) (*OrderParameters, error) {