On Mon, Sep 21, 2020 at 9:08 AM Christian Persson <christ...@cpersson.se> wrote: > > I have found a small typo in the current draft for generics. In the section > "Function argument type inference" > (https://go.googlesource.com/proposal/+/refs/heads/master/design/go2draft-type-parameters.md#function-argument-type-inference), > there is a function NewPair: > > func NewPair[F any](f1, f2 F) *Pair(F) { ... } > > The return type should be *Pair[F] (brackets instead of parentheses), right?
Thanks for catching this. Sent https://golang.org/cl/256303 to fix it. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWTLALcR%2BGrvciH1g0gqJ3t02pLAdUwB65Hcyd-w0zsuA%40mail.gmail.com.