]> Cypherpunks repositories - gostls13.git/commitdiff
test/typeparam/sliceimp.dir: fix typo in a.go
authorcitizen233 <mengrenxiong@gmail.com>
Sun, 29 Aug 2021 13:45:35 +0000 (21:45 +0800)
committerKeith Randall <khr@golang.org>
Mon, 30 Aug 2021 01:55:58 +0000 (01:55 +0000)
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>

test/typeparam/sliceimp.dir/a.go

index da12e9f9fc9ededbb4a4f477cf8a979de9096e21..dbcfae893185e3b9f2e07f1060c523c0c48b3155 100644 (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) {