From 1fa131ee033b7bced52d818c67351a8021765921 Mon Sep 17 00:00:00 2001 From: tyltr Date: Tue, 16 Jan 2024 19:06:58 +0800 Subject: [PATCH] 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 --- model/histogram/generic_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/histogram/generic_test.go b/model/histogram/generic_test.go index b4d6585a8b..6a22b6f193 100644 --- a/model/histogram/generic_test.go +++ b/model/histogram/generic_test.go @@ -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) {