fix slice copy in 1.20 (#13389)

The slices package is added to the standard library in Go 1.21;
we need to import from the exp area to maintain compatibility with Go 1.20.

Signed-off-by: tyltr <tylitianrui@126.com>
pull/13408/head
tyltr 2024-01-16 19:06:58 +08:00 committed by GitHub
parent 72a8f1084b
commit 1fa131ee03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -15,10 +15,10 @@ package histogram
import (
"math"
"slices"
"testing"
"github.com/stretchr/testify/require"
"golang.org/x/exp/slices"
)
func TestGetBound(t *testing.T) {