diff options
| author | Christian Himpel <chressie@gmail.com> | 2019-07-30 11:14:26 +0200 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2019-07-30 14:41:27 +0000 |
| commit | bf0f39f6ff02ed46ce3967d6fba970d3656e67ea (patch) | |
| tree | db3d12bb72d8637a330e3c794178567ed2f2307f | |
| parent | d41bf0fce424ca108d83fc48bb39d845b3c3c18b (diff) | |
| download | go-x-proposal-bf0f39f6ff02ed46ce3967d6fba970d3656e67ea.tar.xz | |
go2draft-contracts.md: fix typo in vertex example
FromTo.Nodes is a method declaration.
Change-Id: I45c90d3a4a8062766fbcd0050471587f46499608
Reviewed-on: https://go-review.googlesource.com/c/proposal/+/188117
Reviewed-by: Ian Lance Taylor <iant@golang.org>
| -rw-r--r-- | design/go2draft-contracts.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/design/go2draft-contracts.md b/design/go2draft-contracts.md index ff6b586..dfa20a8 100644 --- a/design/go2draft-contracts.md +++ b/design/go2draft-contracts.md @@ -551,7 +551,7 @@ For example, consider these type definitions in some other package: type Vertex struct { ... } func (v *Vertex) Edges() []*FromTo { ... } type FromTo struct { ... } -type (ft *FromTo) Nodes() (*Vertex, *Vertex) { ... } +func (ft *FromTo) Nodes() (*Vertex, *Vertex) { ... } ``` There are no interface types here, but we can instantiate |
