]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: remove misleading example from comment
authorRobert Griesemer <gri@golang.org>
Thu, 26 Jan 2023 19:22:26 +0000 (11:22 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 26 Jan 2023 19:45:22 +0000 (19:45 +0000)
commit627f12868c4c3e714bbb4ce4a418f918c1935dc2
treef8363367f0bff8d49d124bc33c93200db1f9dce2
parente9c5e60cfd602f0d9aa257793a802b0180efadd9
go/types, types2: remove misleading example from comment

Before this CL, the comment used the case of a recursive generic
function call as an example for uni-directional unification.
However, such cases are now more generally (and correctly) addressed
through renaming of the type parameters.

Change-Id: I69e94f53418e1fb4ca9431aeb27c639c40d19b09
Reviewed-on: https://go-review.googlesource.com/c/go/+/463735
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/types2/unify.go
src/go/types/unify.go