commit | e615bd6b4b9a94bdb78256012fbce61dd67159b4 | [log] [tgz] |
---|---|---|
author | Dan Kortschak <dan@kortschak.io> | Wed Jun 17 20:14:21 2020 +0930 |
committer | Ian Lance Taylor <iant@golang.org> | Sat Jun 20 00:13:51 2020 +0000 |
tree | 0fae02f5249b0cec90a6d93b456c96a15e77b3c3 | |
parent | f043c689884fd2b955ba5898b3253cac829f99d4 [diff] |
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>
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 @@ // 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)