From a29d9aad7a4543498ff505b0a36d10c0f0153d3f Mon Sep 17 00:00:00 2001 From: citizen233 Date: Sun, 29 Aug 2021 21:45:35 +0800 Subject: [PATCH] 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 Reviewed-by: Keith Randall Trust: Alberto Donizetti Trust: Keith Randall --- test/typeparam/sliceimp.dir/a.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/typeparam/sliceimp.dir/a.go b/test/typeparam/sliceimp.dir/a.go index da12e9f9fc..dbcfae8931 100644 --- a/test/typeparam/sliceimp.dir/a.go +++ b/test/typeparam/sliceimp.dir/a.go @@ -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) { -- 2.50.0