Skip to content

Commit 211da74

Browse files
griesemergopherbot
authored andcommitted
_content/blog: use correct type name in article on generic aliases (typo)
Fixes golang/go#69834. Change-Id: I690e034278a3e71f7c0d196eed29d9df08e77140 Reviewed-on: https://go-review.googlesource.com/c/website/+/619455 TryBot-Bypass: Robert Griesemer <[email protected]> Auto-Submit: Robert Griesemer <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent d94fa76 commit 211da74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_content/blog/alias-names.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ It is not obvious that the minor convenience is worth the complication.
188188

189189
2) If the alias declaration doesn't need to declare its own type parameters and
190190
instead simply "inherits" them from the aliased type `pkg1.G`, the declaration of
191-
`A` provides no indication that it is a generic type.
191+
`G` provides no indication that it is a generic type.
192192
Its type parameters and constraints would have to be retrieved from the declaration
193193
of `pkg1.G` (which itself might be an alias).
194194
Readability will suffer, yet readable code is one of the primary aims of the Go project.

0 commit comments

Comments
 (0)