The panic message when slicing a string with a negative length range (eg `"abcdef"[4..3]`) is confusing: it gives the condition that failed to hold, whilst all the other panic messages give the condition that did hold. Before: begin <= end (4 <= 3) when slicing `abcdef` After: begin > end (4 > 3) when slicing `abcdef` |
||
|---|---|---|
| .. | ||
| benches | ||
| testing | ||
| tests | ||
| Cargo.toml | ||
| lib.rs | ||