From 3bb51a680505776e8545c10dbf6f5f180609cb2c Mon Sep 17 00:00:00 2001
From: Robert Griesemer
Date: Thu, 20 Jul 2023 16:36:08 -0700
Subject: [PATCH] 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
---
doc/go_spec.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 7099f36020d76b..28aba70e4ffb3e 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -4526,7 +4526,7 @@ Type inference
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 @@ Type inference
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)
.