Skip to content

Commit 554c125

Browse files
authored
feat: Implement intermediate/advanced Go concepts (exercises 14-27) (#6)
1 parent 669e389 commit 554c125

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ require (
1111
require (
1212
github.com/davecgh/go-spew v1.1.1 // indirect
1313
github.com/pmezard/go-difflib v1.0.0 // indirect
14+
github.com/stretchr/testify v1.11.0 // indirect
1415
golang.org/x/sys v0.4.0 // indirect
1516
)

internal/exercises/templates/16_range_built_in/range_built_in.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ func sumSlice(s []int) int {
1010

1111
func countMap(m map[string]int) int {
1212
count := 0
13-
for range m {
13+
for _, _ = range m {
1414
count++
1515
}
1616
return count

0 commit comments

Comments
 (0)