Skip to content

Commit 7c7c4f5

Browse files
jo3zephtjgurwara99
andauthored
Update to math/median.go
Co-authored-by: Taj <[email protected]>
1 parent 7ce27dd commit 7c7c4f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

math/median.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type Data interface {
1313
constraints.Float | constraints.Integer
1414
}
1515

16-
func Median[X Data](values []X) float64 {
16+
func Median[T Data](values []T) float64 {
1717
// Sorting the values in order
1818
slices.Sort(values)
1919

0 commit comments

Comments
 (0)