diff options
| author | Godfrey Chan <godfreykfc@gmail.com> | 2024-09-03 12:18:46 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-03 12:18:46 -0700 |
| commit | efc20deb57b142af1a0ce59af9d60479bef5b902 (patch) | |
| tree | 3047fe4f1a7daece4e5d62ccb7eb05cda9817ce4 | |
| parent | 3626b66af05e00b7b836a620e0d5236a64f3a89b (diff) | |
| download | rust-efc20deb57b142af1a0ce59af9d60479bef5b902.tar.gz rust-efc20deb57b142af1a0ce59af9d60479bef5b902.zip | |
Update marker.rs
| -rw-r--r-- | library/core/src/marker.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs index dfc988c885e..62f35c1bfa2 100644 --- a/library/core/src/marker.rs +++ b/library/core/src/marker.rs @@ -292,9 +292,10 @@ marker_impls! { /// bound on type parameters: /// /// ``` +/// #[derive(Clone)] /// struct MyStruct<T>; /// -/// impl<T: Copy> Copy for MyStruct<T> { } +/// impl<T: Copy> Copy for MyStruct<T> { } /// ``` /// /// This isn't always desired. For example, shared references (`&T`) can be copied regardless of |
