From 892f011ab65f6c6da979a34762ba3b3c14931ff4 Mon Sep 17 00:00:00 2001 From: Vadim Graboys Date: Thu, 12 Feb 2015 12:10:49 -0500 Subject: [PATCH] fix doc for Sub --- decimal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decimal.go b/decimal.go index 66f459b..daeb252 100644 --- a/decimal.go +++ b/decimal.go @@ -216,7 +216,7 @@ func (d Decimal) Add(d2 Decimal) Decimal { } } -// Returns d2 - d +// Returns d - d2 func (d Decimal) Sub(d2 Decimal) Decimal { baseScale := min(d.exp, d2.exp) rd := d.rescale(baseScale)