about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-06-02 13:07:20 +0900
committerGitHub <noreply@github.com>2020-06-02 13:07:20 +0900
commitb3cf989eafe2dde7dbc6bc76986b46c9b3a56366 (patch)
treeb0d42fcdad387dd6e6600d3ea1fb591c83c135e5
parent611da23645f9be26fff6896a970bdd8c6cfe6bbe (diff)
parent576a97b6d1add4da03cec36adafbea3084456ed8 (diff)
downloadrust-b3cf989eafe2dde7dbc6bc76986b46c9b3a56366.tar.gz
rust-b3cf989eafe2dde7dbc6bc76986b46c9b3a56366.zip
Rollup merge of #72880 - GuillaumeGomez:cleanup-e0637, r=Dylan-DPC
Clean up E0637 explanation

r? @Dylan-DPC
-rw-r--r--src/librustc_error_codes/error_codes/E0637.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustc_error_codes/error_codes/E0637.md b/src/librustc_error_codes/error_codes/E0637.md
index e114d3d0f94..d9068950bdf 100644
--- a/src/librustc_error_codes/error_codes/E0637.md
+++ b/src/librustc_error_codes/error_codes/E0637.md
@@ -1,6 +1,7 @@
 An underscore `_` character has been used as the identifier for a lifetime.
 
-Erroneous example:
+Erroneous code example:
+
 ```compile_fail,E0106,E0637
 fn longest<'_>(str1: &'_ str, str2: &'_ str) -> &'_ str {
          //^^ `'_` is a reserved lifetime name
@@ -11,6 +12,7 @@ fn longest<'_>(str1: &'_ str, str2: &'_ str) -> &'_ str {
     }
 }
 ```
+
 `'_`, cannot be used as a lifetime identifier because it is a reserved for the
 anonymous lifetime. To fix this, use a lowercase letter such as 'a, or a series
 of lowercase letters such as `'foo`.  For more information, see [the
@@ -18,6 +20,7 @@ book][bk-no].  For more information on using the anonymous lifetime in rust
 nightly, see [the nightly book][bk-al].
 
 Corrected example:
+
 ```
 fn longest<'a>(str1: &'a str, str2: &'a str) -> &'a str {
     if str1.len() > str2.len() {