Update README.md

This commit is contained in:
Giau Tran Minh 2019-06-18 00:11:05 +07:00 committed by GitHub
parent 8b4ba7fd43
commit 1cdd063d0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -987,7 +987,7 @@ However, other than this being a very messy function signature, we also have ano
One way to solve this issue, is to change our concat function. In the example below, I have changed it to only take a single byte array as input argument, but it could just as well have been the opposite case.
```go
func concat(data []byte) func([]byte) ([]byte, error) {
func concat(data []byte) func(data []byte) ([]byte, error) {
return func(concatting []byte) ([]byte, error) {
return append(data, concatting), nil
}