mirror of
https://github.com/golang/go
synced 2024-11-11 23:20:24 -07:00
test/typeparam/sliceimp.dir: fix typo in a.go
Fixing a typo, comparision -> comparison Change-Id: I369f95c251f155bc6a9a6b86077bcf1ab245fc3f Reviewed-on: https://go-review.googlesource.com/c/go/+/345950 Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com> Reviewed-by: Keith Randall <khr@golang.org> Trust: Alberto Donizetti <alb.donizetti@gmail.com> Trust: Keith Randall <khr@golang.org>
This commit is contained in:
parent
f29abccd8a
commit
a29d9aad7a
@ -45,7 +45,7 @@ func Equal[Elem comparable](s1, s2 []Elem) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// EqualFn reports whether two slices are equal using a comparision
|
||||
// EqualFn reports whether two slices are equal using a comparison
|
||||
// function on each element.
|
||||
func EqualFn[Elem any](s1, s2 []Elem, eq func(Elem, Elem) bool) bool {
|
||||
if len(s1) != len(s2) {
|
||||
|
Loading…
Reference in New Issue
Block a user