summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-04-03 22:55:14 +0200
committerGitHub <noreply@github.com>2020-04-03 22:55:14 +0200
commit0f56ccdb345fd343d3d4b95efc0f16e734505c39 (patch)
tree073b7908957e78a3e11b70a4851858c37907104e
parent80690b0418aa2f352fda2fe436233e00356cb95a (diff)
parent9db736059372e1031a6a894fe67140014954a696 (diff)
downloadrust-0f56ccdb345fd343d3d4b95efc0f16e734505c39.tar.gz
Rollup merge of #70735 - GuillaumeGomez:cleanup-e0502, r=Dylan-DPC
Clean up E0502 explanation r? @Dylan-DPC
-rw-r--r--src/librustc_error_codes/error_codes/E0502.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_error_codes/error_codes/E0502.md b/src/librustc_error_codes/error_codes/E0502.md
index f15c05d558d..b90c59f5807 100644
--- a/src/librustc_error_codes/error_codes/E0502.md
+++ b/src/librustc_error_codes/error_codes/E0502.md
@@ -1,5 +1,4 @@
-This error indicates that you are trying to borrow a variable as mutable when it
-has already been borrowed as immutable.
+A variable already borrowed as immutable was borrowed as mutable.
Erroneous code example: