From 1c6affb967ef925ec12420e31c6423a615f90acc Mon Sep 17 00:00:00 2001 From: VRDighe Date: Mon, 12 Sep 2022 20:22:42 +0530 Subject: [PATCH] spec: fix typo in a type parameter example --- doc/go_spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 764dcd2f78..ff75190bb7 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -4265,7 +4265,7 @@ to be inferred. Loosely speaking, type arguments may be omitted from "right to l

-func apply[S ~[]E, E any](s S, f(E) E) S { … }
+func apply[S ~[]E, E any](s S, f func(E) E) S { … }
 
 f0 := apply[]                  // illegal: type argument list cannot be empty
 f1 := apply[[]int]             // type argument for S explicitly provided, type argument for E inferred