fix doc for Sub

This commit is contained in:
Vadim Graboys 2015-02-12 12:10:49 -05:00
parent 16f1ec9225
commit 892f011ab6

View file

@ -216,7 +216,7 @@ func (d Decimal) Add(d2 Decimal) Decimal {
} }
} }
// Returns d2 - d // Returns d - d2
func (d Decimal) Sub(d2 Decimal) Decimal { func (d Decimal) Sub(d2 Decimal) Decimal {
baseScale := min(d.exp, d2.exp) baseScale := min(d.exp, d2.exp)
rd := d.rescale(baseScale) rd := d.rescale(baseScale)