diff options
author | cui fliter <imcusg@gmail.com> | 2022-09-01 06:21:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 08:21:13 +1000 |
commit | 6a17ed2d3caeb9c07d6bf7e3eaf659f5b1eb9cfc (patch) | |
tree | a85b9dac5a79b8cdfd8a860884f82bc6e5ad3919 | |
parent | 4e917f6f44a065aabede824ee2e03e6a8d1da908 (diff) |
fix some typos (#313)
Signed-off-by: cui fliter <imcusg@gmail.com>
-rw-r--r-- | pkg/api/impl/coingecko/coingecko.go | 2 | ||||
-rw-r--r-- | pkg/api/impl/coinmarketcap/coinmarketcap.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/impl/coingecko/coingecko.go b/pkg/api/impl/coingecko/coingecko.go index 049d062..ea22bfb 100644 --- a/pkg/api/impl/coingecko/coingecko.go +++ b/pkg/api/impl/coingecko/coingecko.go @@ -160,7 +160,7 @@ func (s *Service) GetExchangeRates(cached bool) (*types.ExchangeRatesItem, error return s.cachedRates, nil } -// GetExchangeRate gets the current excange rate between two currencies +// GetExchangeRate gets the current exchange rate between two currencies func (s *Service) GetExchangeRate(convertFrom, convertTo string, cached bool) (float64, error) { convertFrom = strings.ToLower(convertFrom) convertTo = strings.ToLower(convertTo) diff --git a/pkg/api/impl/coinmarketcap/coinmarketcap.go b/pkg/api/impl/coinmarketcap/coinmarketcap.go index 96ba3af..6ffcca8 100644 --- a/pkg/api/impl/coinmarketcap/coinmarketcap.go +++ b/pkg/api/impl/coinmarketcap/coinmarketcap.go @@ -430,7 +430,7 @@ func getChartInterval(start, end int64) string { return interval } -// GetExchangeRate gets the current excange rate between two currencies +// GetExchangeRate gets the current exchange rate between two currencies func (s *Service) GetExchangeRate(convertFrom, convertTo string, cached bool) (float64, error) { if convertFrom == convertTo { return 1.0, nil |