From dcebd7d65f90d0f83b97843d99da76f8d30c3721 Mon Sep 17 00:00:00 2001 From: Florian Sundermann Date: Mon, 11 Aug 2014 08:55:43 +0200 Subject: [PATCH] fixed typo --- scaledbarcode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scaledbarcode.go b/scaledbarcode.go index e301da2..cfe427e 100644 --- a/scaledbarcode.go +++ b/scaledbarcode.go @@ -55,7 +55,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 no scale barcode to an image smaller then %dx%d", orgWidth, orgHeight) + return nil, fmt.Errorf("can not scale barcode to an image smaller then %dx%d", orgWidth, orgHeight) } offsetX := (width - (orgWidth * factor)) / 2 @@ -86,7 +86,7 @@ func scale1DCode(bc Barcode, width, height int) (Barcode, error) { factor := int(float64(width) / float64(orgWidth)) if factor <= 0 { - return nil, fmt.Errorf("can no scale barcode to an image smaller then %dx1", orgWidth) + return nil, fmt.Errorf("can not scale barcode to an image smaller then %dx1", orgWidth) } offsetX := (width - (orgWidth * factor)) / 2