diff options
| author | Andrew Bonventre <andybons@gmail.com> | 2019-07-29 16:25:31 -0400 |
|---|---|---|
| committer | Andrew Bonventre <andybons@golang.org> | 2019-07-30 03:36:50 +0000 |
| commit | d41bf0fce424ca108d83fc48bb39d845b3c3c18b (patch) | |
| tree | 797d14c27f2493126c2d4fe2199cb35688af5c06 | |
| parent | b347d16bd31ed1275d9e4cb6b8fa08ec3dc3237d (diff) | |
| download | go-x-proposal-d41bf0fce424ca108d83fc48bb39d845b3c3c18b.tar.xz | |
go2draft-contracts.md: fix link text causing incorrect formatting
There shouldn’t be a space between [link text] and (link).
Change-Id: I5882ab9b96ce7625e512ee55e825b8d1e2f42a06
Reviewed-on: https://go-review.googlesource.com/c/proposal/+/188057
Reviewed-by: Ian Lance Taylor <iant@golang.org>
| -rw-r--r-- | design/go2draft-contracts.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/design/go2draft-contracts.md b/design/go2draft-contracts.md index 69838c7..ff6b586 100644 --- a/design/go2draft-contracts.md +++ b/design/go2draft-contracts.md @@ -25,9 +25,9 @@ different. There have been many [requests to add additional support for generic programming](https://github.com/golang/go/wiki/ExperienceReports#generics) in Go. -There has been extensive discussion on [the issue tracker] -(https://golang.org/issue/15292) and on [a living document] -(https://docs.google.com/document/d/1vrAy9gMpMoS3uaVphB32uVXX4pi-HnNjkMEgyAHX4N4/view). +There has been extensive discussion on +[the issue tracker](https://golang.org/issue/15292) and on +[a living document](https://docs.google.com/document/d/1vrAy9gMpMoS3uaVphB32uVXX4pi-HnNjkMEgyAHX4N4/view). There have been several proposals for adding type parameters, which can be found through the links above. @@ -1300,7 +1300,7 @@ func Join(type T byteseq)(a []T, sep T) (ret T) { for i := 0; i < len(a); i++ { n += len(a[i]) // len works for both string and []byte } - + b := make([]byte, n) bp := copy(b, a[0]) for _, s := range a[1:] { @@ -1439,7 +1439,7 @@ contract integer2(T1, T2) { integer(T1) integer(T2) } - + func Convert(type To, From integer2)(from From) To { to := To(from) if From(to) != from { |
