From 3d66ffdda20418173a38e4690be8b4b51b5c9a00 Mon Sep 17 00:00:00 2001 From: Scott Steele Date: Fri, 10 Aug 2018 03:46:11 -0400 Subject: [PATCH] `derive` implements traits, not types --- src/attributes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/attributes.md b/src/attributes.md index fca8d95cf..7d9b89b1b 100644 --- a/src/attributes.md +++ b/src/attributes.md @@ -454,7 +454,7 @@ impl PartialEq for Foo { } ``` -You can implement `derive` for your own type through [procedural macros]. +You can implement `derive` for your own trait through [procedural macros]. [Doc comments]: comments.html#doc-comments [The Rustdoc Book]: ../rustdoc/the-doc-attribute.html @@ -482,4 +482,4 @@ You can implement `derive` for your own type through [procedural macros]. [match expressions]: expressions/match-expr.html [external blocks]: items/external-blocks.html [items]: items.html -[conditional compilation]: conditional-compilation.html \ No newline at end of file +[conditional compilation]: conditional-compilation.html