Skip to main content

format_arg_range

Function format_arg_range 

Source
fn format_arg_range(range: &RangeInclusive<usize>) -> String
Expand description

Render an accepted-args range for error messages.

1..=1"1", 1..=2"1 or 2", otherwise "N..=M".