From c0b5aafe4cf37ba5857116f64411644fb254139b Mon Sep 17 00:00:00 2001 From: Jack Weeden Date: Tue, 31 Jan 2017 12:27:28 -0500 Subject: [PATCH] Fix typo "Then" -> "than". That's it. --- scaledbarcode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scaledbarcode.go b/scaledbarcode.go index 7e29f3b..152b180 100644 --- a/scaledbarcode.go +++ b/scaledbarcode.go @@ -79,7 +79,7 @@ func scale2DCode(bc Barcode, width, height int) (Barcode, error) { factor := int(math.Min(float64(width)/float64(orgWidth), float64(height)/float64(orgHeight))) if factor <= 0 { - return nil, fmt.Errorf("can not scale barcode to an image smaller then %dx%d", orgWidth, orgHeight) + return nil, fmt.Errorf("can not scale barcode to an image smaller than %dx%d", orgWidth, orgHeight) } offsetX := (width - (orgWidth * factor)) / 2 @@ -110,7 +110,7 @@ func scale1DCode(bc Barcode, width, height int) (Barcode, error) { factor := int(float64(width) / float64(orgWidth)) if factor <= 0 { - return nil, fmt.Errorf("can not scale barcode to an image smaller then %dx1", orgWidth) + return nil, fmt.Errorf("can not scale barcode to an image smaller than %dx1", orgWidth) } offsetX := (width - (orgWidth * factor)) / 2