Skip to content

Commit

Permalink
fix some typos (#313)
Browse files Browse the repository at this point in the history
Signed-off-by: cui fliter <imcusg@gmail.com>
  • Loading branch information
cuishuang committed Aug 31, 2022
1 parent 4e917f6 commit 6a17ed2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/api/impl/coingecko/coingecko.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/impl/coinmarketcap/coinmarketcap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a17ed2

Please sign in to comment.