From: Robert Griesemer
Date: Thu, 20 Jul 2023 23:36:08 +0000 (-0700)
Subject: spec: fix a couple of minor mistakes in type inference section
X-Git-Tag: go1.22rc1~1548
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3bb51a680505776e8545c10dbf6f5f180609cb2c;p=gostls13.git
spec: fix a couple of minor mistakes in type inference section
Change-Id: I9cdb301163b67add39928c8fc7df2b7f3893f45e
Reviewed-on: https://go-review.googlesource.com/c/go/+/511836
Reviewed-by: Ian Lance Taylor
Reviewed-by: Robert Griesemer
TryBot-Bypass: Robert Griesemer
Auto-Submit: Robert Griesemer
---
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 7099f36020..28aba70e4f 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -4526,7 +4526,7 @@ The equations are as follows (type argument lists are omitted for clarity):
typeof(pi) â¡A typeof(ai)
.
If ai
is an untyped constant cj
,
- and pi
is a bound type parameter Pk
,
+ and typeof(pi)
is a bound type parameter Pk
,
the pair (cj, Pk)
is collected separately from
the type equations.
@@ -4543,7 +4543,7 @@ The equations are as follows (type argument lists are omitted for clarity):
For a return statement return â¦, f, â¦
where f
is a
generic function returned as a result to a (non-generic) result variable
- of function type:
+ r
of function type:
typeof(r) â¡A typeof(f)
.