about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJamilya Shurukhova <jamilya.shurukhova@jetbrains.com>2023-03-17 14:54:39 +0100
committerJamilya Shurukhova <jamilya.shurukhova@jetbrains.com>2023-03-17 14:54:39 +0100
commit05dc132adb94c0583423ea0cbe25c67af4fdb1dd (patch)
treecb15268615140c3808c230ff2f0279c24ba3775e
parent1f12c3e397dd36c8ad7ea376f7e5a2aaaa3b7a26 (diff)
downloadrust-05dc132adb94c0583423ea0cbe25c67af4fdb1dd.tar.gz
rust-05dc132adb94c0583423ea0cbe25c67af4fdb1dd.zip
E0206 - code review changes
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0206.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0206.md b/compiler/rustc_error_codes/src/error_codes/E0206.md
index b3e5d6e28d8..8658b5a858a 100644
--- a/compiler/rustc_error_codes/src/error_codes/E0206.md
+++ b/compiler/rustc_error_codes/src/error_codes/E0206.md
@@ -1,4 +1,5 @@
-The `Copy` trait was implemented on a type which is neither a struct nor an enum nor a union.
+The `Copy` trait was implemented on a type which is neither a struct, an 
+enum, nor a union.
 
 Erroneous code example:
 
@@ -9,6 +10,6 @@ struct Bar;
 impl Copy for &'static mut Bar { } // error!
 ```
 
-You can only implement `Copy` for a struct, a union, or an enum.
+You can only implement `Copy` for a struct, an enum, or a union.
 The previous example will fail because `&'static mut Bar`
-is not a struct or enum.
+is not a struct, an enum, or a union.