Browse Source

Update components.go

comment typo
Aaron Torres 1 year ago
parent
commit
b631e0da3c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      chapter11/goflow/components.go

+ 1 - 1
chapter11/goflow/components.go

@@ -14,7 +14,7 @@ type Encoder struct {
 	Res chan<- string
 }
 
-// OnVal does the encoding then pushes the result onto Re
+// OnVal does the encoding then pushes the result onto Res
 func (e *Encoder) OnVal(val string) {
 	encoded := base64.StdEncoding.EncodeToString([]byte(val))
 	e.Res <- fmt.Sprintf("%s => %s", val, encoded)