docs(shoppingsummarycounter): indentation fix

This commit is contained in:
Tiago Collot 2022-10-13 15:38:21 +01:00
parent 43291628d3
commit d1233266f9
1 changed files with 7 additions and 6 deletions

View File

@ -22,16 +22,17 @@ Here is a possible program to test your function:
package main
import (
"fmt"
"piscine"
"fmt"
"piscine"
)
func main() {
summary := "Burger Water Carrot Coffee Water Water Chips Carrot Carrot Burger Carrot Water"
for index, element := range piscine.ShoppingSummaryCounter(summary) {
fmt.Println(index,"=>",element)
}
summary := "Burger Water Carrot Coffee Water Water Chips Carrot Carrot Burger Carrot Water"
for index, element := range piscine.ShoppingSummaryCounter(summary) {
fmt.Println(index, "=>", element)
}
}
```
And its output: