fix some typos (#313)

Signed-off-by: cui fliter <imcusg@gmail.com>
pull/210/head^2
cui fliter 2 years ago committed by GitHub
parent 4e917f6f44
commit 6a17ed2d3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

@ -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

Loading…
Cancel
Save