Skip to content

Commit

Permalink
docs: add another derive for Copyable struct
Browse files Browse the repository at this point in the history
This adds another `derive` for a `Copy`able struct, so that we are
consistent with `derive` annotations.
  • Loading branch information
Jan Riemer committed Aug 18, 2020
1 parent 56daf63 commit 522d177
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ pub trait StructuralEq {
///
/// ```
/// # #[allow(dead_code)]
/// #[derive(Copy, Clone)]
/// struct Point {
/// x: i32,
/// y: i32,
Expand Down

0 comments on commit 522d177

Please sign in to comment.