We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 58891ba + 979f86b commit 84c5486Copy full SHA for 84c5486
pkg/pricing/utils.go
@@ -41,7 +41,7 @@ func ratMin(x, y *big.Rat) *big.Rat {
41
return x
42
}
43
44
-// PriceString returns a human reprensetation of a price with a currency
+// PriceString returns a human representation of a price with a currency
45
func PriceString(price *big.Rat, currency string) string {
46
floatVal, _ := price.Float64()
47
return fmt.Sprintf("%s %s", humanize.Ftoa(floatVal), currency)
0 commit comments