Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
"Then" -> "than". That's it.
  • Loading branch information
jackbot committed Jan 31, 2017
1 parent ca2b518 commit c0b5aaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scaledbarcode.go
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit c0b5aaf

Please sign in to comment.