Skip to content

Commit

Permalink
rename ExampleForForEachWhile() to ExampleForEachWhile()
Browse files Browse the repository at this point in the history
  • Loading branch information
Sianao committed Jul 2, 2024
1 parent 6f8b26d commit a9e22a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slice_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func ExampleForEach() {
// 3
// 4
}
func ExampleForForEachWhile() {
func ExampleForEachWhile() {
list := []int64{1, 2, -math.MaxInt, 4}

ForEachWhile(list, func(x int64, _ int) bool {
Expand Down

0 comments on commit a9e22a1

Please sign in to comment.