]> Cypherpunks.ru repositories - gostls13.git/commitdiff
spec: correct type parameter name used in example
authorIan Lance Taylor <iant@golang.org>
Fri, 18 Aug 2023 16:44:16 +0000 (09:44 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 18 Aug 2023 20:44:48 +0000 (20:44 +0000)
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>

doc/go_spec.html

index 301fdb3cf1cbbfaddc2fc01416eac921bd76125d..a65e466fe4ee5ff0664764670ea6a6998cd398a7 100644 (file)
@@ -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.