Rellum Rellum

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

Canonical fixes

Before:

smallest = min(value)

After:

smallest = min(value, fallback)

Code example

smallest = min(value)