Fixed function name in beer example

This commit is contained in:
David Pennington 2019-06-21 12:03:12 -05:00 committed by GitHub
parent 4bb5374b44
commit f94108f643
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,7 +160,7 @@ The reason why this is true, is because of the scope of the variable, rather tha
```go
func BeerBrandListToBeerList(beerBrands []BeerBrand) []Beer {
var beerList []Beer
for _, brand := range beerBrandList {
for _, brand := range beerBrands {
for _, beer := range brand {
beerList = append(beerList, beer)
}