about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Jasper <mjjasper1@gmail.com>2019-02-09 20:35:34 +0000
committerMatthew Jasper <mjjasper1@gmail.com>2019-02-21 19:03:34 +0000
commit90f40cd0fb592bbdc74ef6324e378dd566191386 (patch)
treeaff943c639766812879e2eaa34421d5746369048
parentfcfeb068171656ab6212134ddd773fff5b9cc9b2 (diff)
Fix error index example
-rw-r--r--src/librustc_mir/diagnostics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/diagnostics.rs b/src/librustc_mir/diagnostics.rs
index 4df3004a9ad..d8384e17ef0 100644
--- a/src/librustc_mir/diagnostics.rs
+++ b/src/librustc_mir/diagnostics.rs
@@ -1978,8 +1978,8 @@ could cause the match to be non-exhaustive:
 let mut x = Some(0);
 match x {
     None => (),
-    Some(v) if { x = None; false } => (),
-    Some(_) => (), // No longer matches
+    Some(_) if { x = None; false } => (),
+    Some(v) => (), // No longer matches
 }
 ```