mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2024-11-23 14:14:05 +00:00
Merge pull request #3 from Xeoncross/master
Change quotes to use markdown
This commit is contained in:
commit
bbf5a24a56
|
@ -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