about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorDeeDeeG <DeeDeeG@users.noreply.github.com>2020-04-21 14:05:32 -0400
committerDeeDeeG <DeeDeeG@users.noreply.github.com>2020-04-21 15:06:24 -0400
commit57c2712895d547870694fdb3fc0b8a23e68a447f (patch)
tree7f8fb1abd8f65be10bda2e53250e57647fcc7886 /src/librustc_error_codes/error_codes
parent45d050cde277b22a755847338f2acc2c7b834141 (diff)
downloadrust-57c2712895d547870694fdb3fc0b8a23e68a447f.tar.gz
rust-57c2712895d547870694fdb3fc0b8a23e68a447f.zip
Improve E0308 error message wording again
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0308.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/librustc_error_codes/error_codes/E0308.md b/src/librustc_error_codes/error_codes/E0308.md
index b2c84370490..e2c40f03019 100644
--- a/src/librustc_error_codes/error_codes/E0308.md
+++ b/src/librustc_error_codes/error_codes/E0308.md
@@ -12,8 +12,7 @@ let x: i32 = "I am not a number!";
 //    type `i32` assigned to variable `x`
 ```
 
-This error occurs when the compiler was unable to infer the concrete type of a
-variable. It can happen in several cases, the most common being a mismatch
-between the type that the compiler inferred for a variable based on its
-initializing expression, on the one hand, and the type the author explicitly
-assigned to the variable, on the other hand.
+This error occurs when the compiler is unable to infer the concrete type of a
+variable. It can occur in several cases, the most common being a mismatch
+between two types: the type the author explicitly assigned, and the type the
+compiler inferred.