From: VRDighe Date: Wed, 14 Sep 2022 04:25:55 +0000 (+0000) Subject: spec: fix typo in a type parameter example X-Git-Tag: go1.20rc1~975 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0bfa9f0435e03176b04ad202320be441d03ee25f;p=gostls13.git spec: fix typo in a type parameter example Fixes #54973 Change-Id: Ibad9dd124617a1bbc23abd17cbd6e9e9928e3ed9 GitHub-Last-Rev: 1c6affb967ef925ec12420e31c6423a615f90acc GitHub-Pull-Request: golang/go#55021 Reviewed-on: https://go-review.googlesource.com/c/go/+/430316 Reviewed-by: Cherry Mui Run-TryBot: Daniel Martí Reviewed-by: Daniel Martí Reviewed-by: Robert Griesemer TryBot-Result: Gopher Robot --- 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