about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-24 21:32:26 +0100
committerGitHub <noreply@github.com>2020-03-24 21:32:26 +0100
commit89feaf6d960c42fb56cbbd215005f6ec7249cad9 (patch)
tree5cb09224f4ed8669555b5c6aa87338b6943b6a0d /src
parent2dcf54f564c6d8bbf48960fb9aaec88a0e2e062a (diff)
parent4bf6734f6ffc38745adadd5a8f407630e234685b (diff)
downloadrust-89feaf6d960c42fb56cbbd215005f6ec7249cad9.tar.gz
rust-89feaf6d960c42fb56cbbd215005f6ec7249cad9.zip
Rollup merge of #70023 - GuillaumeGomez:cleanup-e0436, r=Centril
clean up E0436 explanation

r? @Dylan-DPC
Diffstat (limited to 'src')
-rw-r--r--src/librustc_error_codes/error_codes/E0436.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/librustc_error_codes/error_codes/E0436.md b/src/librustc_error_codes/error_codes/E0436.md
index b1afd9e9603..48ecc49e92f 100644
--- a/src/librustc_error_codes/error_codes/E0436.md
+++ b/src/librustc_error_codes/error_codes/E0436.md
@@ -1,5 +1,4 @@
-The functional record update syntax is only allowed for structs. (Struct-like
-enum variants don't qualify, for example.)
+The functional record update syntax was used on something other than a struct.
 
 Erroneous code example:
 
@@ -24,7 +23,9 @@ fn one_up_competitor(competitor_frequency: PublicationFrequency)
 }
 ```
 
-Rewrite the expression without functional record update syntax:
+The functional record update syntax is only allowed for structs (struct-like
+enum variants don't qualify, for example). To fix the previous code, rewrite the
+expression without functional record update syntax:
 
 ```
 enum PublicationFrequency {