#is there a difference between (1..6) and (1..=5)?
8 messages · Page 1 of 1 (latest)
They do the same thing, but the 1..6 takes up a bit less memory and the 1..=5 style can handle going all the way to the last value in the type (1..=u8::MAX goes all the way up to 255, while there is no a..b that goes up that high).