]> git.lizzy.rs Git - rust.git/commitdiff
clean up E0436 explanation
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sun, 15 Mar 2020 13:54:53 +0000 (14:54 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 19 Mar 2020 13:09:54 +0000 (14:09 +0100)
src/librustc_error_codes/error_codes/E0436.md

index b1afd9e96033712013af5842784d682e15b1029f..48ecc49e92f547ff1a5794525c4fbd4e78f17e34 100644 (file)
@@ -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 {