about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorJosh White <jwhite927@gmail.com>2020-02-06 16:54:24 -0500
committerJosh White <jwhite927@gmail.com>2020-02-06 16:54:24 -0500
commit1923586286dea1a0f8ece43056126fc2ecc89337 (patch)
treecf30d8094b2a66d3fe33be2b93b187db2e05ff57 /src/librustc_error_codes/error_codes
parentcdf2f30d6a364b49dcd919530c60799e8793a2e6 (diff)
Edited error description
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0637.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_error_codes/error_codes/E0637.md b/src/librustc_error_codes/error_codes/E0637.md
index f5da357534e..44a365be7e0 100644
--- a/src/librustc_error_codes/error_codes/E0637.md
+++ b/src/librustc_error_codes/error_codes/E0637.md
@@ -2,15 +2,15 @@
 An underscore `_` character or a numeric literal `u8`, `i32`, `f64`, etc has
 been used as the identifier for a lifetime. 
 
-Erroneous code example:
+Erroneous code example 1:
 ```
-fn some_function<'_>(string1: &'_ str, string2: &'_ str) -> &'_ str {
+fn some_function<'_>(str1: &'_ str, str2: &'_ str) -> &'_ str {
     //Some code
 }
 ```
 or Erroneous code example 2:
 ```
-fn some_function<'u8>(string1: &'u8 str, string2: &'u8 str) -> &'u8 str {
+fn some_function<'u8>(str1: &'u8 str, str2: &'u8 str) -> &'u8 str {
     //Some code
 }
 ```
@@ -25,7 +25,7 @@ single lowercase letter, such as `'a`, is sufficient.  For more information, see
 
 Corrected code example:
 ```
-fn some_function<'a>(string1: &'a str, string2: &'a str) -> &'a str {
+fn some_function<'a>(str1: &'a str, str2: &'a str) -> &'a str {
     //Some code
 }
 ```