about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-05-11 13:22:56 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-05-11 13:22:56 +0200
commit806f09cf21129ec92c975e99443850d376281e04 (patch)
tree71273803c23b012dd6a748861a7913b634b4fadb /src/librustc_error_codes/error_codes
parent97f3eeec8216d7155c24674b9be55e7c672bcae3 (diff)
downloadrust-806f09cf21129ec92c975e99443850d376281e04.tar.gz
rust-806f09cf21129ec92c975e99443850d376281e04.zip
Clean up E0579 explanation
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0579.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librustc_error_codes/error_codes/E0579.md b/src/librustc_error_codes/error_codes/E0579.md
index 225e27f0cab..f554242a3d4 100644
--- a/src/librustc_error_codes/error_codes/E0579.md
+++ b/src/librustc_error_codes/error_codes/E0579.md
@@ -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.