]> git.lizzy.rs Git - rust.git/commitdiff
Clean up E0368 and E0369 explanations
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Mon, 24 Feb 2020 11:55:49 +0000 (12:55 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Mon, 24 Feb 2020 11:57:19 +0000 (12:57 +0100)
src/librustc_error_codes/error_codes/E0368.md
src/librustc_error_codes/error_codes/E0369.md

index 0bb283258c463b769b01b36bf7a1a69e8f3ab985..7b9d93348213120a555931a5139a7c235c393338 100644 (file)
@@ -1,5 +1,7 @@
-This error indicates that a binary assignment operator like `+=` or `^=` was
-applied to a type that doesn't support it. For example:
+A binary assignment operator like `+=` or `^=` was applied to a type that
+doesn't support it.
+
+Erroneous code example:
 
 ```compile_fail,E0368
 let mut x = 12f32; // error: binary operation `<<` cannot be applied to
index 397979e564105f51da7f12e5cde05e805ab6c0a9..ab0f4b40843c1ce0a31a39df492586f03288dcc3 100644 (file)
@@ -1,4 +1,5 @@
 A binary operation was attempted on a type which doesn't support it.
+
 Erroneous code example:
 
 ```compile_fail,E0369