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) }