Changed naming Convention

This commit is contained in:
Ryan O'Hara-Reid
2016-03-11 21:39:30 +11:00
parent 5f2625d7d9
commit 236a2afab5

View File

@@ -39,11 +39,11 @@ func (t *Ticker) PriceToString(cryptoCurrency, fiatCurrency, priceType string) s
}
}
func AddTickerPrice(m map[string]map[string]TickerPrice, cyrptocurrency, fiatcurrency string, price TickerPrice) {
mm, ok := m[cyrptocurrency]
func AddTickerPrice(m map[string]map[string]TickerPrice, cryptocurrency, fiatcurrency string, price TickerPrice) {
mm, ok := m[cryptocurrency]
if !ok {
mm = make(map[string]TickerPrice)
m[cyrptocurrency] = mm
m[cryptocurrency] = mm
}
mm[fiatcurrency] = price
}