diff options
| author | Ian Lance Taylor <iant@golang.org> | 2020-06-22 15:41:27 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2020-06-22 23:09:14 +0000 |
| commit | 8ac978b0f6a6069fd61579f77de2b5f5912ed572 (patch) | |
| tree | 4190c1fc21e5da64b872ea361891325b87817310 | |
| parent | d60d27c80e1dbedf58cfdaa482c6d30801f05139 (diff) | |
| download | go-x-proposal-8ac978b0f6a6069fd61579f77de2b5f5912ed572.tar.xz | |
design/go2draft-type-parameters: use func, not type, for method
Pointed out by Cornelius Diekmann.
Change-Id: I419e220f4320fb3beebe313697d4bb5c3615c6c8
Reviewed-on: https://go-review.googlesource.com/c/proposal/+/239417
Reviewed-by: Robert Griesemer <gri@golang.org>
| -rw-r--r-- | design/go2draft-type-parameters.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/design/go2draft-type-parameters.md b/design/go2draft-type-parameters.md index d765710..39aac42 100644 --- a/design/go2draft-type-parameters.md +++ b/design/go2draft-type-parameters.md @@ -1036,7 +1036,7 @@ For example, consider these type definitions in some other package: type Vertex struct { ... } // Edges returns the edges connected to v. -type (v *Vertex) Edges() []*FromTo { ... } +func (v *Vertex) Edges() []*FromTo { ... } // FromTo is an edge in a graph. type FromTo struct { ... } |
