We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e44d1e commit f5ea575Copy full SHA for f5ea575
go/ssa/interp/external.go
@@ -13,6 +13,7 @@ import (
13
"math"
14
"os"
15
"runtime"
16
+ "slices"
17
"sort"
18
"strconv"
19
"strings"
@@ -119,15 +120,7 @@ func ext۰bytes۰Equal(fr *frame, args []value) value {
119
120
// func Equal(a, b []byte) bool
121
a := args[0].([]value)
122
b := args[1].([]value)
- if len(a) != len(b) {
123
- return false
124
- }
125
- for i := range a {
126
- if a[i] != b[i] {
127
128
129
130
- return true
+ return slices.Equal(a, b)
131
}
132
133
func ext۰bytes۰IndexByte(fr *frame, args []value) value {
0 commit comments