S0019: min/max expect two arguments
Generated from rellum-diagnostics/src/db.rs.
Explanation
The min and max built-ins compare exactly two values. They do not accept lists, arrays, or a variable number of arguments in the current prelude.
Common causes
- calling min or max with one argument
- passing three or more values
- expecting min or max to reduce an array
Canonical fixes
- provide exactly two ordered values
Before:
smallest = min(value)
After:
smallest = min(value, fallback)
- write an explicit reduction helper for arrays
Code example
smallest = min(value)