about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2019-11-15 13:04:52 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2019-11-15 13:04:52 +0100
commit9d4620870c42224cc91d532b4e4cb20bbc2270b5 (patch)
tree4a431256fc970d67812c505b87ed6ee99f5ab357
parent9e8c4e6fb1c952048fb823e59f4c9c6487bf9a58 (diff)
downloadrust-9d4620870c42224cc91d532b4e4cb20bbc2270b5.tar.gz
rust-9d4620870c42224cc91d532b4e4cb20bbc2270b5.zip
Clean up E0023
-rw-r--r--src/librustc_error_codes/error_codes/E0023.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/librustc_error_codes/error_codes/E0023.md b/src/librustc_error_codes/error_codes/E0023.md
index 92cae460c81..23a9d22a60d 100644
--- a/src/librustc_error_codes/error_codes/E0023.md
+++ b/src/librustc_error_codes/error_codes/E0023.md
@@ -1,6 +1,6 @@
-A pattern used to match against an enum variant must provide a sub-pattern for
-each field of the enum variant. This error indicates that a pattern attempted to
-extract an incorrect number of fields from a variant.
+A pattern attempted to extract an incorrect number of fields from a variant.
+
+Erroneous code example:
 
 ```
 enum Fruit {
@@ -9,6 +9,9 @@ enum Fruit {
 }
 ```
 
+A pattern used to match against an enum variant must provide a sub-pattern for
+each field of the enum variant.
+
 Here the `Apple` variant has two fields, and should be matched against like so:
 
 ```