diff options
| author | Dan Kortschak <dan@kortschak.io> | 2020-06-17 20:14:21 +0930 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2020-06-20 00:13:51 +0000 |
| commit | e615bd6b4b9a94bdb78256012fbce61dd67159b4 (patch) | |
| tree | 0fae02f5249b0cec90a6d93b456c96a15e77b3c3 | |
| parent | f043c689884fd2b955ba5898b3253cac829f99d4 (diff) | |
| download | go-x-proposal-e615bd6b4b9a94bdb78256012fbce61dd67159b4.tar.xz | |
design/go2draft-type-parameters: fix typo
Change-Id: Id468d065c574ce7913063a31bf0256100b29a763
Reviewed-on: https://go-review.googlesource.com/c/proposal/+/238417
Reviewed-by: Toshihiro Shiino <shiino.toshihiro@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@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 3fda094..5b4a344 100644 --- a/design/go2draft-type-parameters.md +++ b/design/go2draft-type-parameters.md @@ -1122,7 +1122,7 @@ type Setter interface { // The type argument must be passed explicitly at the call site. // // This example compiles but is unlikely to work as desired. -func FromStrings(type T Setter)(s []string) []T) { +func FromStrings(type T Setter)(s []string) []T { result := make([]T, len(s)) for i, v := range s { result[i].Set(v) |
