Re: [TECH TOPIC] Rust for Linux

Miguel Ojeda
2021-07-19T18:25:03Z

On Mon, Jul 19, 2021 at 4:43 PM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>
> Turns out "a..b" in Rust does mean "range from a to b-1".
> That's gonna be hard to (un)learn...

It may help to think about it as the usual `for` loop in C, typically
written with `<` and the "size" (instead of `<=` and the "size - 1"),
i.e.:

for i in 0..N
for (i = 0; i < N; ++i)

Cheers,
Miguel