1
0
mirror of https://github.com/golang/go synced 2024-11-26 07:27:59 -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:
citizen233 2021-08-29 21:45:35 +08:00 committed by Keith Randall
parent f29abccd8a
commit a29d9aad7a

View File

@ -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) {