mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2024-11-23 14:14:05 +00:00
Fixed function name in beer example
This commit is contained in:
parent
4bb5374b44
commit
f94108f643
|
@ -160,7 +160,7 @@ The reason why this is true, is because of the scope of the variable, rather tha
|
||||||
```go
|
```go
|
||||||
func BeerBrandListToBeerList(beerBrands []BeerBrand) []Beer {
|
func BeerBrandListToBeerList(beerBrands []BeerBrand) []Beer {
|
||||||
var beerList []Beer
|
var beerList []Beer
|
||||||
for _, brand := range beerBrandList {
|
for _, brand := range beerBrands {
|
||||||
for _, beer := range brand {
|
for _, beer := range brand {
|
||||||
beerList = append(beerList, beer)
|
beerList = append(beerList, beer)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue