docs: the order of alternatives for variant types matters, and follows the same rules as overload resolution (#2784)

2 files changed