Skip to content

Commit

Permalink
Fix invalid package reference
Browse files Browse the repository at this point in the history
  • Loading branch information
cholland1989 committed Jun 30, 2024
1 parent ece7257 commit 84e9380
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/collection/map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"fmt"
"slices"
"sort"
"testing"

"github.com/stretchr/testify/require"
Expand All @@ -23,7 +23,7 @@ func ExampleMap() {
result = append(result, fmt.Sprintf("%d=%d", key, value))
}
// Iteration order is not guaranteed
slices.Sort(result)
sort.Strings(result)
fmt.Println(result)
// Output: [0=0 1=1]
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/collection/set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package collection
import (
"encoding/json"
"fmt"
"slices"
"sort"
"testing"

"github.com/stretchr/testify/require"
Expand All @@ -22,7 +22,7 @@ func ExampleSet() {
result = append(result, value)
}
// Iteration order is not guaranteed
slices.Sort(result)
sort.Ints(result)
fmt.Println(result)
// Output: [0 1]
}
Expand Down

0 comments on commit 84e9380

Please sign in to comment.