Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Oct 4, 2022
1 parent dff7105 commit c190e19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slice_example_test.go
Expand Up @@ -125,9 +125,9 @@ func ExampleGroupBy() {
return i % 3
})

for _, item := range result {
fmt.Printf("%v\n", item)
}
fmt.Printf("%v\n", result[0])
fmt.Printf("%v\n", result[1])
fmt.Printf("%v\n", result[2])
// Output:
// [0 3]
// [1 4]
Expand Down

0 comments on commit c190e19

Please sign in to comment.