From 8f6ac0118f7cc42bf2cb2ba57460fdbccda1c8b0 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 15 Aug 2024 14:58:08 -0400 Subject: [PATCH] chore: color: add min/max todo note --- color.go | 1 + 1 file changed, 1 insertion(+) diff --git a/color.go b/color.go index 9253a5583b..a471a79f2d 100644 --- a/color.go +++ b/color.go @@ -152,6 +152,7 @@ func xParseColor(s string) color.Color { } func getMaxMin(a, b, c float64) (max, min float64) { + // TODO: use go1.21 min/max functions if a > b { max = a min = b