aboutsummaryrefslogtreecommitdiff
path: root/doc/go_spec.html
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2023-08-18 09:44:16 -0700
committerGopher Robot <gobot@golang.org>2023-08-18 20:44:48 +0000
commitce16086345435d85906de31ea4af486b69bae895 (patch)
tree5223dc0a380a1a28b2323ac27ef2097282d21313 /doc/go_spec.html
parent795e779610cd1ef8ad4c137c067a23ace1190115 (diff)
downloadgo-ce16086345435d85906de31ea4af486b69bae895.tar.gz
go-ce16086345435d85906de31ea4af486b69bae895.zip
spec: correct type parameter name used in example
Change-Id: I40595a3f598483d029473af465c756f8777ecc91 Reviewed-on: https://go-review.googlesource.com/c/go/+/520915 Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Bypass: Ian Lance Taylor <iant@google.com> Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'doc/go_spec.html')
-rw-r--r--doc/go_spec.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 301fdb3cf1..a65e466fe4 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,6 +1,6 @@
<!--{
"Title": "The Go Programming Language Specification",
- "Subtitle": "Version of Aug 17, 2023",
+ "Subtitle": "Version of Aug 18, 2023",
"Path": "/ref/spec"
}-->
@@ -4491,7 +4491,7 @@ the type parameters of the functions that need to be instantiated
and for which no explicit type arguments is provided.
These type parameters are called <i>bound</i> type parameters.
For instance, in the <code>dedup</code> example above, the type parameters
-<code>P</code> and <code>E</code> are bound to <code>dedup</code>.
+<code>S</code> and <code>E</code> are bound to <code>dedup</code>.
An argument to a generic function call may be a generic function itself.
The type parameters of that function are included in the set of bound
type parameters.