Skip to content

Commit 324bc6b

Browse files
committed
Unwrap derive
1 parent 9571d4d commit 324bc6b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/attributes/derive.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@ r[attributes.derive]
22
# Derive
33

44
r[attributes.derive.intro]
5-
The *`derive` attribute* allows new [items] to be automatically generated for
6-
data structures.
5+
The *`derive` attribute* allows new [items] to be automatically generated for data structures.
76

87
r[attributes.derive.syntax]
9-
It uses the [MetaListPaths] syntax to specify a list of
10-
traits to implement or paths to [derive macros] to process.
8+
It uses the [MetaListPaths] syntax to specify a list of traits to implement or paths to [derive macros] to process.
119

12-
For example, the following will create an [`impl` item] for the
13-
[`PartialEq`] and [`Clone`] traits for `Foo`, and the type parameter `T` will be
14-
given the `PartialEq` or `Clone` constraints for the appropriate `impl`:
10+
For example, the following will create an [`impl` item] for the [`PartialEq`] and [`Clone`] traits for `Foo`, and the type parameter `T` will be given the `PartialEq` or `Clone` constraints for the appropriate `impl`:
1511

1612
```rust
1713
#[derive(PartialEq, Clone)]

0 commit comments

Comments
 (0)