Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumGogenerics type parametersSingle-choice MCQ

What is wrong with this generic function meant to return the larger of two values?

func Max[T any](a, b T) T { if a > b { return a } return b }