Hello golang-nuts,

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?

Kind regards,
Christian Persson

-- 
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/CAMGjc%3D2djiFP6EtxM%2B51gDyY6cBWx2UypkPTV8-EizsZJYopAQ%40mail.gmail.com.

Reply via email to