Clean up E0579 explanation

This commit is contained in:
Guillaume Gomez 2020-05-11 13:22:56 +02:00
parent 97f3eeec82
commit 806f09cf21

View file

@ -1,7 +1,4 @@
When matching against an exclusive range, the compiler verifies that the range
is non-empty. Exclusive range patterns include the start point but not the end
point, so this is equivalent to requiring the start of the range to be less
than the end of the range.
A lower range wasn't less than the upper range.
Erroneous code example:
@ -17,3 +14,8 @@ fn main() {
}
}
```
When matching against an exclusive range, the compiler verifies that the range
is non-empty. Exclusive range patterns include the start point but not the end
point, so this is equivalent to requiring the start of the range to be less
than the end of the range.