Update marker.rs

This commit is contained in:
Godfrey Chan 2024-09-03 12:29:23 -07:00 committed by GitHub
parent 277a08c7d8
commit e45b53efc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -295,7 +295,7 @@ pub trait StructuralPartialEq {
/// #[derive(Clone)]
/// struct MyStruct<T>(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