about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-01-03 17:42:44 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-01-04 00:32:29 +0100
commitec64bbbe07df8e502b64e449be86c1613717c0c7 (patch)
tree280148dd09b612ff97bddd5fae37f1b030db89ce
parent30ddb5a8c1e85916da0acdc665d6a16535a12dd6 (diff)
downloadrust-ec64bbbe07df8e502b64e449be86c1613717c0c7.tar.gz
rust-ec64bbbe07df8e502b64e449be86c1613717c0c7.zip
Small error explanations cleanup
-rw-r--r--src/librustc_error_codes/error_codes/E0136.md7
-rw-r--r--src/librustc_error_codes/error_codes/E0161.md3
2 files changed, 6 insertions, 4 deletions
diff --git a/src/librustc_error_codes/error_codes/E0136.md b/src/librustc_error_codes/error_codes/E0136.md
index c0e8c7e061c..b91b52c074c 100644
--- a/src/librustc_error_codes/error_codes/E0136.md
+++ b/src/librustc_error_codes/error_codes/E0136.md
@@ -1,5 +1,4 @@
-A binary can only have one entry point, and by default that entry point is the
-function `main()`. If there are multiple such functions, please rename one.
+More than one `main` function was found.
 
 Erroneous code example:
 
@@ -14,3 +13,7 @@ fn main() { // error!
     // ...
 }
 ```
+
+A binary can only have one entry point, and by default that entry point is the
+`main()` function. If there are multiple instances of this function, please
+rename one of them.
diff --git a/src/librustc_error_codes/error_codes/E0161.md b/src/librustc_error_codes/error_codes/E0161.md
index 26269db2327..c2e2f0240f4 100644
--- a/src/librustc_error_codes/error_codes/E0161.md
+++ b/src/librustc_error_codes/error_codes/E0161.md
@@ -1,5 +1,4 @@
-A value was moved. However, its size was not known at compile time, and only
-values of a known size can be moved.
+A value was moved whose size was not known at compile time.
 
 Erroneous code example: