From 9fb741398c2ba7af278fe98df1ef2fba2fe23cc1 Mon Sep 17 00:00:00 2001 From: boombuler Date: Thu, 12 Dec 2013 20:40:42 +0100 Subject: [PATCH] Iterate has one 't' --- datamatrix/codelayout.go | 2 +- datamatrix/encoder.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datamatrix/codelayout.go b/datamatrix/codelayout.go index 0a9a93e..515b874 100644 --- a/datamatrix/codelayout.go +++ b/datamatrix/codelayout.go @@ -95,7 +95,7 @@ func (l *codeLayout) Corner4(value byte) { l.Set(1, l.size.MatrixColumns()-1, value, 7, true) } -func (l *codeLayout) ItterateSetter() <-chan setValFunc { +func (l *codeLayout) IterateSetter() <-chan setValFunc { result := make(chan setValFunc) go func() { row := 4 diff --git a/datamatrix/encoder.go b/datamatrix/encoder.go index 31c7cf7..13dcf99 100644 --- a/datamatrix/encoder.go +++ b/datamatrix/encoder.go @@ -32,7 +32,7 @@ func Encode(content string) (barcode.Barcode, error) { func render(data []byte, size *dmCodeSize) *datamatrixCode { cl := newCodeLayout(size) - setters := cl.ItterateSetter() + setters := cl.IterateSetter() for _, b := range data { (<-setters)(b) }