Why range expression in for loop cause integer overflow panic if end < start

to avoid this panic, one should always check to make sure start >= end.

1 Like

You mean, to avoid panic, start <= end.
Using 0.12.0 I am getting a panic: start index # is larger than end index #

1 Like