mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue